Reply to topic  [ 10 posts ] 
Footnotes after Hebrew text 
Author Message
User avatar

Joined: 2007-06-16 03:10:23
Posts: 18
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?


2011-07-22 13:06:25
Profile WWW
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
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.


2011-07-22 13:15:39
Profile WWW
User avatar

Joined: 2007-06-16 03:10:23
Posts: 18
Excellent! Thank you Martin. Is this documented somewhere or something that you all will try and automate/fix?


2011-07-22 18:06:20
Profile WWW

Joined: 2006-12-08 00:46:44
Posts: 417
Location: London or Exeter, UK
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


2011-07-22 18:24:34
Profile
User avatar

Joined: 2007-06-16 03:10:23
Posts: 18
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.


2011-07-22 18:57:06
Profile WWW
User avatar

Joined: 2007-06-16 03:10:23
Posts: 18
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.


2011-07-22 19:16:54
Profile WWW

Joined: 2006-08-19 18:35:27
Posts: 213
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)


2011-07-24 10:38:02
Profile
Official Nisus Person
User avatar

Joined: 2003-02-11 10:49:05
Posts: 428
Location: Solana Beach, CA
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.


2011-07-24 11:20:11
Profile ICQ

Joined: 2006-08-19 18:35:27
Posts: 213
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 258 times
2011-07-24 12:31:28
Profile
User avatar

Joined: 2007-06-16 03:10:23
Posts: 18
Thank you Mark and Ruchama!


2011-07-24 13:08:30
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software