[Libreoffice-bugs] [Bug 51863] New: [GRAMMAR CHECKER] Error in LightProof overlapping rules
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jul 8 14:37:39 CEST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=51863
Bug #: 51863
Summary: [GRAMMAR CHECKER] Error in LightProof overlapping
rules
Classification: Unclassified
Product: LibreOffice
Version: 3.5.4 release
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Linguistic
AssignedTo: libreoffice-bugs at lists.freedesktop.org
ReportedBy: olivier.hallot at documentfoundation.org
This is the translation from portuguese, related to gender and adjectives
grammar errors.
When two rules applies, the second is affected by the first
Example:
rule 1 test: O menina
vvvvvvvvvvvv
( "O" is male gender article, "menina" is girl, so error in gender. The correct
sentence is "A menina" - the girl - or "O menino" - the boy)
rule 2 test: menina feio
vvvvvvvvvvvvvvvv
("menina" is girl and "feio" is ugly with male gender, so another error, The
correct sentence is "menina feia" or "menino feio")
Then the sentence: "O menina feio" has 2 gender errors.
Clicking on "O" or "menina" gives the correct suggestion and does not affect
the second rule, but if you click on the word "feio", the suggestion continues
as "o menino/a menina", when it should be "menina feia". If we confirm the
suggestion, the word "feio" disapears. I should be left at least "A menina
feio", so the second rule can apply.
Code sample:
[u'(?u)(?<![-\\w\u2013.,\xad])O menina(?![-\\w\u2013\xad])', u'O menino\\nA
menina', u'Voc\xea quis dizer:', False],
[u'(?u)(?<![-\\w\u2013.,\xad])menina feio(?![-\\w\u2013\xad])', u'menina feia',
u'Voc\xea quis dizer:', False],
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Libreoffice-bugs
mailing list