textile / php-textile

Textile markup language parser for PHP
https://textile-lang.com
Other
216 stars 44 forks source link

Error with closing quotation mark in French #214

Closed cara-tm closed 11 months ago

cara-tm commented 3 years ago

Prerequisites

Problematic Textile markup

In French, the ellipses (suspension points) after a closing quotation mark need a space (not required in French) otherwise the quotation mark is transformed into an open one (this problem may be occurring with a period: to be confirmed).

Expected output

 «les rouges Ceylans»…

Actual output

 «les rouges Ceylans«…

Used PHP code

{Please write here}

Additional information

PHP-Textile version: 3.7.6 PHP version: 7.4.15

gocom commented 2 years ago

What is the input Textile markup that generates the output so that we could try to create test case for this and try to reproduce it?

Also having the used configured quote symbols would help. Altho, I can go hunting them from Textpattern CMS' language packages and source code.

PHP-Textile itself doesn't have understanding of French or other languages. Systems such as Textpattern CMS, provide it different quote symbols which it then uses as quote replacements.

cara-tm commented 11 months ago

You are absolutely right (my fault): in Textpattern CMS there are no typographical problems. Double quotes are parsed into correct quotation marks (based on the current language).

Thank you. Please, close this issue.