Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007684ScribusLanguage Toolspublic2008-12-24 01:292014-08-23 14:56
Reporterbasvanschaik 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformIntel64OSLinuxOS VersionUbutu Intrepid
Product Version1.3.3.12 
Target VersionFixed in Version 
Summary0007684: Hyphenation setting in "Document Setup" -> "Hyphenator" jumps back to "English" after having started the hyphenator
DescriptionIf I change the hyphenation language under Document setup -> Hypenator to "Dutch" it has switched back after using the hyphenator. And indeed, the text which I wanted Scribus to hyphenate seems to be hyphenated in English style, in stead of Dutch.

This is quite a grave bug, since it requires me to manually hyphenate _all_ texts in my > 80 pages booklet, which is just impossible. Especially since corrected hyphenation suggestions are not stored at all.

I would really be helped a lot if someone can help me fix this!
Steps To ReproduceChange hypnenation language in "Document Setup" -> "Hyphenator" and start the Hyphenator by selecting a textfield and clicking "Extras" -> "Hyphenate text". Go back to hyphenation settings in "Document Setup" and the language setting has been switched back to "English".
TagsNo tags attached.
Patch
Attached Files

- Relationships
related to 0004967closed Non switching translations 

-  Notes
(0020826)
basvanschaik (reporter)
2008-12-24 02:15

I have just fetched the latest version from SVN and this problem seems to be fixed: the selected hyphenation language in the preferences dialog does not change automatically.

However, when selecting "Dutch" from the list, it looks like Scribus still uses English style hyphenation?
(0020827)
jghali (administrator)
2008-12-24 12:40

In 1.3.3.x hyphenation language is defined at the frame level and can be set using properties palette. In 1.3.4+ the hyphenation language is determined by the character style language. In both case changing the hyphenation language in document prefs won't miraculously change already defined frame language settings or character style language settings.
(0020828)
basvanschaik (reporter)
2008-12-24 13:33

I know, but after setting all options to "Dutch" it still seems to apply English hyphenation patterns. At least it looks like English hyphenation, but I can be wrong.

IMO, this can be caused by two problems:
 1) Scribus applies the wrong patterns
 2) Dutch hyphenation in Scribus is just not perfect.

I wouldn't know how to find out what is wrong...
(0020832)
jghali (administrator)
2008-12-24 15:50

I mean changing language in app/doc preferences is not enough as those settings do not affect language settings already defined. In 1.3.3.x you have to change language setting of each frame from text tab in properties palette. In 1.3.5svn you have to change the style languages from style manager. In both case dutch hyphenation is then clearly different from english hyphenation.
(0020833)
basvanschaik (reporter)
2008-12-24 15:54

I meant to say that I have changed the style options in the style manager. Browsing the source code in hyphenator.cpp (and adding some debugging statements) made clear that the following statement:
  it->itemText.charStyle(firstC).language()

Does not return a language, but just some empty string. Now
  NewDict(it->itemText.charStyle(firstC).language());

fails to load the wanted dictionairy, but doesn't notice the user of that failure!

I'm debugging some more...
(0020834)
basvanschaik (reporter)
2008-12-24 16:13

Just hardcoding the string "Dutch" in hyphenator.cpp does seem to work better (at least my debugging statements show a successful load), but the results are still a bit disappointing...

I'm still wondering if Scribus is actually /using/ the loaded hyph_nl dictionary.

Debugging some more...
(0020835)
jghali (administrator)
2008-12-24 16:57
edited on: 2008-12-24 16:58

It looks like 1.3.3.x documents loaded in 1.3.5svn do not have language infos set in character styles. Somewhat normal as 1.3.3.x did not have character styles but would be nice if we found a way to handle hyphenation more gracefully in such docs.

(0020837)
basvanschaik (reporter)
2008-12-24 17:25

That's probably true, but I did set the correct values for character styles in my 1.3.5 document.

- Issue History
Date Modified Username Field Change
2008-12-24 01:29 basvanschaik New Issue
2008-12-24 02:15 basvanschaik Note Added: 0020826
2008-12-24 12:40 jghali Note Added: 0020827
2008-12-24 13:33 basvanschaik Note Added: 0020828
2008-12-24 15:50 jghali Note Added: 0020832
2008-12-24 15:54 basvanschaik Note Added: 0020833
2008-12-24 16:13 basvanschaik Note Added: 0020834
2008-12-24 16:57 jghali Note Added: 0020835
2008-12-24 16:58 jghali Note Edited: 0020835
2008-12-24 17:25 basvanschaik Note Added: 0020837
2014-07-21 08:25 Kunda Relationship added related to 0004967
2014-07-22 23:29 cbradney Relationship deleted related to 0004967
2014-08-23 14:56 Kunda Relationship added related to 0004967



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker