Migrating Pology to Python 3

Adrian Chaves adrian at chaves.io
Sat Oct 8 11:13:21 BST 2022


I have debugged this issue and I believe the root cause is 
"addFilterHook name="normalize/noinvisible" on="pmsgstr" 
handle="noinvisible"", defined in puretext.filters, which is included in 
ortography.rules. So I think this is another case where Python 3 is 
working as expected, and Python 2 was not.

On 2022-10-07 21:58, Karl Ove Hufthammer wrote:

> Adrian Chaves skreiv 07.10.2022 17:25:
> 
>> I will still be available today and tomorrow all day in case further 
>> changes are needed, so if you have not tested everything you use yet, 
>> please do so as soon as you can.
> 
> I've found a bug in the posieve script for the check-rules command. For 
> Norwegian Nynorsk (language code nn) we have a rule (in 
> pology/lang/nn/rules/ortography.rules) with this trigger:
> 
> [\b …]
> 
> This will catch strings that have a *normal* space before …, e.g., 
> 'Search …'. (The space should instead be a non-breaking space, to avoid 
> the string being broken over two lines between 'Search' and '…'.)
> 
> In Python 2, the rule worked fine. But in Python 3, it's *also* 
> triggered by strings that have a non-breaking space.
> 
> Test case:
> 
> posieve check-rules 
> l10n-support/nn/summit/messages/akonadi-contacts/akonadicontact5.po
> 
> In Python 2, this detects no problems. In Python 3, it detects 7 
> problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-doc/attachments/20221008/4b48f659/attachment.htm>


More information about the kde-i18n-doc mailing list