Apache OpenOffice (AOO) Bugzilla – Issue 16511
Rashei Tevot(acronyms)'s quotation recognition
Last modified: 2017-05-20 11:13:44 UTC
OOo has a nice feature of recognizing the beggining and end of a " quotation. However in Hebrew acronym needs a quotation mark between the two last characters IE IDF will become ID"F PERL will become PER"L etc. OOo should not treat in-word quotation mark as a regular quotation thus causing: "good ID"F" renders as {begin q}good ID{end q}F{begin q} and not as {begin q}good ID{quotation q}F{end q} Thanks - it's might be typed as an enhancement but as it kills other quotation marks I said it's a defect.
Seen no comments for quit a while so I'm confirming it.
DL->FT: Would you please takeover?
The only way to accomplish the desired goal is to turn AutoCorrection off here. There is no reasonable way to really determine when a quotation mark is used as described or not. Do we need to turn AutoCorrection for quotation marks off per default for Hebrew version then??
Listen, there's a very high disadvantage for having a non-hebrew speaker/user as developers of Hebrew-aware part in a product, I seriously consider openning a Hebrew online class :-) The algorithm to determine that is extremely simple I'll describe it in a couple of words, if quotation inside a word it's an acronym-quotation else it's a regular one, very plain, very simple, very straightforward. ---------python pseudo-code---------- if getnewchar()=='"': if lastchar!=' ': if waitfornextchar()!=' ': replacecharwith(CONST_ACRONYM_QUOTATION) ------------------------------------- Please please please please please, consider using this algorithm, this is also good for English as well, as rare terms such as '"' will use plain quotation. Please please please please please please please please please please please please. Do not use stupid sollution such as Disabling this fine feature where a wiser approach would suffice.
an correction to the algorithm above: ---------python pseudo-code---------- if getnewchar()=='"': if lastchar!=' ': if waitfornextchar() not in\ ( ' ','.',',',')','>','}',']' ): replacecharwith(CONST_ACRONYM_QUOTATION) -------------------------------------
DL: Reassigned to FT.
FT->FME: I do not have a clue on code snipptes. But I still consider this issue non-relevant. But, if the code snippet just bails us out of this dilemma w/o a negative implication, fine with me.
FME->OS: Could you please have a look?
the algorithm is VERY simple. CURRENT ALGORITHM: If quotations appears after a space/newline autoreplace quotation with BEGINNING_QUOTATION If quotations appears after a character which is not space - automatically replace quotation with ENDING_QUOTATIONS MY NEW ALGORITHM: If quotations appears after a space/newline autoreplace quotation with BEGINNING_QUOTATION If quotations appears after a character which is not space - automatically replace quotation with ENDING_QUOTATIONS if any non-space/punctuation character is entered after ENDING_QUOTATION sign, auto-replace ENDING_QUOTATION with IN_WORD_QUOTATIONS. this simple. It seems very understandable to me, please contact me if any expanded explanation is needed.
Target set to OOo Later
In fact, the quotation mark should be autocorrected to U+05F4 (HEBREW PUNCTUATION GERSHAYIM) when detected as the Hebrew acronym marker (a.k.a. gershayim).
Reset assigne to the default "issues@openoffice.apache.org".