Page 2 of 2

Re: Problem with digits when open old Nisus Hebrew files

Posted: 2009-02-16 09:30:00
by xiamenese
Ruchama wrote:Just to make it clear.. Ruchama is a she.. :)

But really, I still think that these problems are relatively defined and solvable, and I plead and urge nisus people to add something (or a seperate module) that will enable previous nisus people to import their files more easily.

please..
Humble apologies ... I'm Chinese orientated and so don't know about any possible gender issues in names other than in my own English and European languages, and some Chinese ones.

For the other issue, I can only imagine that the Nisus people are working on solutions to these problems as they become apparent and as they have the resources to do so, and that solutions found will be incorporated into new versions as they become available. I merely wanted to point out what I see as being the root of problems like this ... the complete change of text engine, which hasn't happened with Word as the Mac version of Word is carbon not cocoa, and presumably Adobe has the resources to have been able to re-code their text engine for Leopard. It took Quark years to produce Express for OS-X, plus a version or two to get the bugs sorted out, or so it seems.

The Mellel people wrote their text engine from the ground up, and being who they are obviously had Hebrew very much in mind from the start. I tried using Mellel for quite a while at the beginning of the OS-X era, but couldn't live with it as their text engine didn't allow the direct import of .doc files in Chinese -- which came out in binary code; I had to open the files in TextEdit, save them out as RTF and then import the RTF, and I was never sure about the viability of exported documents in Chinese -- so moved to the precursor of Nisus when it first appeared.

As I said, I don't think there are perfect solutions anywhere that cover all the possible requirements of people working with documents from older file-formats or in multiple languages, but I can understand your frustrations with the Nisus Classic format and the results from importing such documents into Nisus Writer in whichever version.

Re: Problem with digits when open old Nisus Hebrew files

Posted: 2009-02-25 07:28:42
by shlomit
Hello,
Just wanted to say the the aplication "Mellel" - http://www.redlers.com/ can import Nisus files perfect, all numbers are corect,
and everything looks great.

tnaks for the efforts,
I have found my solution.

shlomit

Re: Problem with digits when open old Nisus Hebrew files

Posted: 2009-03-03 07:34:19
by rmark
Shlomit, and others interested…

I apologize for this delay in my response. I have been traveling and write now from קיבוץ חצור.

Here is the text of a macro that will reverse each uninterrupted string of digits.

First you must select all the numbers in the document using a Find Expression I had shared with Shlomit earlier:
[[:digit:]]+
You can copy that directly to your Find/Replace window (using PowerFind Pro mode).

Then run this macro:
# Reverses characters in all selections. Note: does not pay attention to
# composed character sequences (eg: base char + accent), which is intentional
# because this is likely to be run on Classic text.

$doc = Document.active
ForEach $sel in reversed $doc.textSelections
$text = $sel.text
$range = $sel.range
$reversed = ''

# build reversed chunk
$charAt = $range.bound - 1
While $charAt >= $range.location
$subRange = Range.new($charAt, 1)
$char = $text.subtextInRange($subRange)
If 0 == $reversed.length
$reversed = $char
Else
$replaceRange = Range.new($reversed.length, 0)
$reversed.replaceInRange($replaceRange, $char)
End
$charAt -= 1
End

# insert reversal
$text.replaceInRange($range, $reversed)
End
Here is the macro file (called Reverse, zipped) itself.

Re: Problem with digits when open old Nisus Hebrew files

Posted: 2009-03-03 07:45:26
by Ruchama
Thanks, Mark,
This replaces with a general expression the find and replace action. The main problem is still, having to perform this to each individual file, and does not remove the directionality marks leftovers from system 9. is there any way to include both of the actions into the hebrew decoder of Nisus?

Enjoy Israel..