Copy link to clipboard
Copied
I am producing localised WebHelps in about 30 languages, including Arabic and Hebrew, Generating the helps with RH7.
My workaround to get Right To Left orientation seems to produce "acceptable" results, except our testers suggest that the navigation pane for Arabic and Hebrew should be on the right too. I have not been able to figure out how to do it.
Any suggestions?
Better get it perfect eh?
In whihost.js on line 317, change 'window._event.pageX = oMatch.offsetLeft ;' into 'window._event.pageX = oMatch.offsetRight ;'
In whibody.htm on line 162, Change ' nPosX = window.event.srcElement.offsetLeft + window.event.srcElement.offsetWidth - document.body.scrollLeft; ' to ' nPosX = window.event.srcElement.offsetRight + window.event.srcElement.offsetWidth - document.body.scrollRight; '
Greet,
Willam
Copy link to clipboard
Copied
Hi,
The whihost.js change was just a failsafe for if your html didn't have the text direction set.
All these changed strings make sense to me, when I see them. Looks like I don't have the education or experience to spot them in the scripts and fix them in a correct syntax.
I agree. No matter how complicated the scrips become, they need to use a rather simple syntax to place elements on your screen. You need to know which functions are called in which files - That's what gives me a headache sometimes
Hope you were able to fix it before the release!
Greet,
Willam
PS: Don't force all users on Firefox, they can use Opera as well
Copy link to clipboard
Copied
It does not look too bad in Opera either...
Anyway, I could not have done this without you, Willam.
They are building a Release Candidate now. It is not our fault if it is not good enough, and they have to do it again
----------------------------
We have Final Builder 6 software for various tasks and my friendly release engineer made a project that helps RoboHelp Generate all our languages in one go:
Extract resources form version control
Generate helps in the languages that have changes
Make all the replacements that are needed to make RTL work too
Put the finished helps where we need them
Inform those who need to know
Copy link to clipboard
Copied
Good idea about the Final Builder. Were now busy getting that running and I'll try to get them to implement RoboHelp too. Never thought about that, thanks!
Greet,
Willam
Copy link to clipboard
Copied
Hi,
I've been away for some time...
I noticed that Willam has an improved version of the WebHelp RTL process on his site:
http://www.wvanweelden.eu/robohelp/right_to_left_help
His post-processing procedure should work in later versions of RH, too.
Copy link to clipboard
Copied
Good to see you back in town Pertti.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
The RTL process is working for me (testing), EXCEPT my breadcrumbs still read left to right. Can you assist?
Copy link to clipboard
Copied
I don't have access to Robohelp and a suitable project for testing now, so I'm answering from vague memories:
That was not a problem to me when I had <html dir=RTL>, instead of <html> at the beginning of each SOURCE HTML file.
Your breadcrumbs are also in English. I think those texts came from the ToC, or the Title (not Heading) of the HTML files.
Copy link to clipboard
Copied
Welcome back Pertti.
The breadcrumbs are created by JavaScript and they do come from the TOC. They're placed on generation, based on the TOC. Since the skin is in English, the breadcrumbs are too.
I will have to play around to look what is going on. Be sure to look at the article on Peter's site too: http://www.grainge.org/pages/authoring/right2left/right2left.htm According to the screenshots of Pertti's test project, the breadcrumbs are correct in his test project.
Greet,
Willam
Copy link to clipboard
Copied
By the time I started paying attention to things like breadcrumbs, I also had translated LNG files (they contain texts that appear on the “Help UI”).
I didn't have different skins in the projects.
Copy link to clipboard
Copied
Thank you both, Pertti and William. I have only one translated file so far, but am trying to test the process, with that file and a few English files, while I await more translations. I did add <html dir=RTL> to each of the Source htm files, and in the Output htm files, after generation.
Should I also update the TOC (.hhc) file with <html dir=RTL> prior to generation ?
Copy link to clipboard
Copied
I recall <html dir=RTL> was not needed in the .hhc or .hhk files. It may even cause problems. Trying it will not cause any harm.
Copy link to clipboard
Copied
A couple of questions occurred to me:
- Which version of Robohelp are you using?
- Which instructions were you following (Willam's, this thread, or the one's on Peter's site?
- Do I understand correctly that <html dir=RTL> in source files reverted to <html> in the output when you generate the help?
Copy link to clipboard
Copied
Thanks for additional thoughts and questions:
Copy link to clipboard
Copied
Sounds OK.
The "whxxx" files are generated by RH, every time you Generate.
I cannot give much more advice without playing with some files, which I cannot do now.
One thing to try could be to replace the relevant texts in the .hhc file with some Arabic.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now