Footnotes after Hebrew text

Everything related to our flagship word processor.
Post Reply
User avatar
Targuman
Posts: 18
Joined: 2007-06-16 03:10:23
Contact:

Footnotes after Hebrew text

Post by Targuman » 2011-07-22 13:06:25

I have run into an odd repeatable problem.
* Writing in English include Hebrew text in parens (למשל)
* Add a footnote after the parens
* End up with (1(למשל

See the image.

Image

I searched the forum but did not see this problem reported. Anyone else find this to happen?

User avatar
martin
Official Nisus Person
Posts: 4288
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: Footnotes after Hebrew text

Post by martin » 2011-07-22 13:15:39

This has to do with the Unicode layout rules. You'll want to insert a left-to-right marker after the close parenthesis and before footnote reference. You can insert such a marker using the menu Insert > Directionality Marker > Left to Right Marker.

User avatar
Targuman
Posts: 18
Joined: 2007-06-16 03:10:23
Contact:

Re: Footnotes after Hebrew text

Post by Targuman » 2011-07-22 18:06:20

Excellent! Thank you Martin. Is this documented somewhere or something that you all will try and automate/fix?

xiamenese
Posts: 422
Joined: 2006-12-08 00:46:44
Location: London or Exeter, UK

Re: Footnotes after Hebrew text

Post by xiamenese » 2011-07-22 18:24:34

Targuman wrote:I have run into an odd repeatable problem.
* Writing in English include Hebrew text in parens (למשל)
* Add a footnote after the parens
* End up with (1(למשל

See the image.

Image

I searched the forum but did not see this problem reported. Anyone else find this to happen?
Looking at your screenshot, it would seem to me that this might not be something that needs fixing. If you look at the two parentheses, they are not the same size ... in LTR order, the first parenthesis is bigger, so presumably a Hebrew one, whereas the second was typed while you were typing English and is smaller — i.e. it was the first one typed. So what you have got is Hebrew close-parenthesis, English footnote mark, English open-parenthesis, Hebrew text. Note, the footnote mark follows the close-parenthesis as it should.

I would presume that if you had switched back to English before typing the second parenthesis, it would presumably have appeared at the right hand end of the string as going back to English — as I understand it — should switch direction automatically, and you'd get an English close-parenthesis followed by the footnote mark as normal.

I stand open to correction, as I'm not an LTR language user, but I occasionally suffer from weird punctuation spacing as a CKJ user, when I forget to switch back to English before typing the punctuation.

Mark

User avatar
Targuman
Posts: 18
Joined: 2007-06-16 03:10:23
Contact:

Re: Footnotes after Hebrew text

Post by Targuman » 2011-07-22 18:57:06

Mark - The parens started out the same and are both English fonts. I am absolutely certain of this. I type in Hebrew, switch back to English and close parens, just as you describe, and it happens every time.

User avatar
Targuman
Posts: 18
Joined: 2007-06-16 03:10:23
Contact:

Re: Footnotes after Hebrew text

Post by Targuman » 2011-07-22 19:16:54

martin wrote:This has to do with the Unicode layout rules. You'll want to insert a left-to-right marker after the close parenthesis and before footnote reference. You can insert such a marker using the menu Insert > Directionality Marker > Left to Right Marker.
Martin - is there a way to set up a character style or something similar so that I can use a single key command to switch back to English AND change the directional marker? As Mark intimates, I would have expected that to happen automatically when I changed languages.

Ruchama
Posts: 213
Joined: 2006-08-19 18:35:27

Re: Footnotes after Hebrew text

Post by Ruchama » 2011-07-24 10:38:02

It is the same behavior with me, when the main direction of the section is LTR.
It should relatively easy to set a macro with a keyboard shortcut, that will serve as your "hebrew" close parens. (combined with the directionality marker)

User avatar
rmark
Official Nisus Person
Posts: 428
Joined: 2003-02-11 10:49:05
Location: Solana Beach, CA
Contact:

Re: Footnotes after Hebrew text

Post by rmark » 2011-07-24 11:20:11

Targuman, Mark, and Ruchama (and others paying attention to this thread),

I'm pretty sure this issue is explored in the Nisus Writer Pro 2.0 User's Guide on page 33:
Mix right to left and left to right text... some common errors and fixes
If not, we'll have to add this particular instance to the "common".

At the same time, I like the idea of a macro inserting the directional marker. Maybe one of the "macro masters" can work something up.
Write On!
Mark Hurvitz
Nisus Software Inc.

Ruchama
Posts: 213
Joined: 2006-08-19 18:35:27

Re: Footnotes after Hebrew text

Post by Ruchama » 2011-07-24 12:31:28

It is ages since I have edited macros, but I attach here a primitive one. it worked for me. see if it does the trick for you.
download the file, open it in Nisus, save as perl macro.
then, instead of typing 'right paren.' invoke this macro. you can set a keyboard shortcut to it.
Feel free (everyone) to correct..
Attachments
rightpar.rtf
(17.85 KiB) Downloaded 273 times

User avatar
Targuman
Posts: 18
Joined: 2007-06-16 03:10:23
Contact:

Re: Footnotes after Hebrew text

Post by Targuman » 2011-07-24 13:08:30

Thank you Mark and Ruchama!

Post Reply