improper language flag icons

Everything related to our flagship word processor.
Post Reply
scoleman
Posts: 4
Joined: 2007-07-24 13:35:44
Location: Dublin

improper language flag icons

Post by scoleman »

When writing text in Irish -- which Nisus annoyingly and incorrectly refers to as "Gaelic (Ireland)" -- NWP displays the american flag icon at the bottom of the window. This behavior is independent of all language and keyboard settings, whether in NWP or in System Preferences (I've tried all combinations). It is especially frustrating since Nisus could use the "Irish" icon built into MacOS which is associated with the Irish (language) keyboard layout. The same thing seems to happen with a few other languages; it is as if NWP throws up its hands and reverts to the US English icon when it encounters some subset of "minor" languages. This is very frustrating when writing text in more than one language (Spell-checking in Irish does work well, however, thanks to CocoAspell).

The same behavior was exhibited in NWE, and was acknowleged as a bug when I reported it; unfortunately it seems to have carried over to NWP.

What I would like to know is, in lieu of a bug fix from Nisus, does anyone know of any hack I could use to change this behavior?
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Post by martin »

If you're comfortable you can accomplish this. Just be sure to make a copy of your NWP application before starting.

1. Find NWP in the Finder and reveal the package contents.
2. Open the file "Contents:Resources:Profiles.plist" in a text editor.
3. Find the Irish language definition (it is easiest to search for "toolbox.lang.GaelicIE").
4. Replace the keyboard layout information that is just 4 lines below. Specifically replace the lines:

Code: Select all

<key>keyboardInputMethod</key>
<dict>
	<key>keyboardLayoutDisplayName</key>
	<string>U.S.</string>
	<key>keyboardLayoutIdentifier</key>
	<integer>0</integer>
</dict>
With the lines:

Code: Select all

<key>keyboardInputMethod</key>
<dict>
	<key>keyboardLayoutDisplayName</key>
	<string>Irish</string>
	<key>keyboardLayoutIdentifier</key>
	<integer>50</integer>
	<key>keyboardLayoutScriptCode</key>
	<integer>0</integer>
</dict>
scoleman
Posts: 4
Joined: 2007-07-24 13:35:44
Location: Dublin

Post by scoleman »

Thanks Martin!!! That works perfectly.
scoleman
Posts: 4
Joined: 2007-07-24 13:35:44
Location: Dublin

new version of this bug fix?

Post by scoleman »

Hi Martin, could you tell me how to fix this in NWP 1.1? Seems like what I need to edit is now in the "Languages.plist" but the syntax has changed... I figured it out for the beta but seem to have forgotten what I'd done.

Thanks!

>>>
Posted: 2007-07-24 18:44:43 Post subject:
If you're comfortable you can accomplish this. Just be sure to make a copy of your NWP application before starting.

1. Find NWP in the Finder and reveal the package contents.
2. Open the file "Contents:Resources:Profiles.plist" in a text editor.
3. Find the Irish language definition (it is easiest to search for "toolbox.lang.GaelicIE").
4. Replace the keyboard layout information that is just 4 lines below. Specifically replace the lines:

Code:
<key>keyboardInputMethod</key>
<dict>
<key>keyboardLayoutDisplayName</key>
<string>U.S.</string>
<key>keyboardLayoutIdentifier</key>
<integer>0</integer>
</dict>

With the lines:
Code:
<key>keyboardInputMethod</key>
<dict>
<key>keyboardLayoutDisplayName</key>
<string>Irish</string>
<key>keyboardLayoutIdentifier</key>
<integer>50</integer>
<key>keyboardLayoutScriptCode</key>
<integer>0</integer>
</dict>

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

Post by martin »

If you're on Tiger then the changes originally recommended should still work. On Leopard I'm not sure. However, with NWP 1.1 there is another way to customize the language icons:

1. Find NWP in the Finder and reveal the package contents.
2. Navigate to the folder "Contents:Resources".
3. Into that folder copy a TIFF image with the name "lang-CODE.tif", where CODE is the ISO code for the language.

So for Gaelic the file should be named "lang-gd.tif" and for Irish Gaelic "lang-gd_IE.tif".

I'll see if we can get this corrected for a future release, so you don't have to deal with this hand editing. Besides the Irish flag, is there a more specific flag that NWP should be using for Gaelic?
scoleman
Posts: 4
Joined: 2007-07-24 13:35:44
Location: Dublin

Re: improper language flag icons

Post by scoleman »

Yes that works (I'm using system 10.5.3)!

I just stuck a "g" in middle of the flag to distinguish it from the one for "English (Ireland)".

Thanks,

SC
Post Reply