Trimming Japanese full-width punctuation
If ‘all’ is specified, all parentheses, middle dots, and punctuations of full width are trimmed and treated as half width. <string> behaves the same as all, but only the character included in the character strings specified here is treated as a half width. See also ‘axf:punctuation-trim’ in the online manual for more character strings available.
'none'
(あいうえお)
'start'
(あいうえお)
'end'
(あいうえお)
'start-except-first'
It’s same as ‘start’, but punctuations in the first line or the line right after the forcible line break are excluded.
(あいうえ(お))
'allow-end'
If the full-width punctuation comes at the end of a line and it fits in a line, it’s kept as full-width, if it does not fit in a line, it’s made half-width.
(あいうえおか)きくけこ)
'end-except-fullstop'
It is same as ‘end’, but U+3002 (。) and U+FF0E (.) are excluded.
(あいうえお)(かきくけこ。
'adjacent'
Trim the amount of the space between the full-width punctuation and the full-width character. (e.g. full-width opening parenthesis) The combination of the ajacent character strings before and after the space can be found in ‘-ah-punctuation-trim’ in the online manual
'-ah-punctuation-trim: none;'
((あいう);かき)、けこ
'-ah-punctuation-trim: adjacent'
It is same as ‘end’, but U+3002 (。) and U+FF0E (.) are excluded.
((あいう);かき)、けこ
'all', <string>
If ‘all’ is specified, all parentheses, middle dots, and punctuations of full width are trimmed and treated as half width. <string> behaves the same as all, but only the character included in the character strings specified here is treated as a half width. See also ‘-ah-punctuation-trim’ in the online manual for more character strings available.
'-ah-punctuation-trim: none;'
【あ(あ“あ:あ〈・〉あ、あ”あ)あ】
'-ah-punctuation-trim: all'
【あ(あ“あ:あ〈・〉あ、あ”あ)あ】
'-ah-punctuation-trim: 〉,、,”,),】'
【あ(あ“あ:あ〈・〉あ、あ”あ)あ】