Skip to content

Commit

Permalink
fix(templates): Detect Turkish alphabet as part of dropcap characters
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 26, 2021
1 parent 6440386 commit cb5353c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ CASILE.dropcapNextLetter = function ()
originalTypesetter = SILE.typesetter.typeset
SILE.call("noindent")
SILE.typesetter.typeset = function (self, text)
local first, rest = text:match("([^%w]*%w)(.*)")
local first, rest = text:match("([^%wüöşçğıİ]*[%wüöşçğıİ][^%wüöşçğıİ]*)(.*)")
if first and rest then
SILE.typesetter.typeset = originalTypesetter
SILE.call("dropcap", {}, { first })
Expand Down

0 comments on commit cb5353c

Please sign in to comment.