Bug 861156

Summary: libtranslit does not work with some m17n input methods like latn-post or latn-pre which are not specific to a single language
Product: [Fedora] Fedora Reporter: Mike FABIAN <mfabian>
Component: libtranslitAssignee: Daiki Ueno <dueno>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: apatil, dueno, i18n-bugs, mfabian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-01 08:00:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
0001-Make-it-work-for-input-methods-like-latn-post-latn-p.patch none

Description Mike FABIAN 2012-09-27 16:20:21 UTC
I found that problem when trying to add a de_DE.conf file to
ibus-typing-booster with these contents:

mfabian@ari:/usr/share/ibus-typing-booster/hunspell-tables
$ cat de_DE.conf 
license = GPL
serial_number = 2010922
icon = english.png
name = de_DE
description = This is a German typing booster engine table for De-De language
languages = de
author = Anish Patil <apatil> 
status_prompt = de
valid_input_chars = abcdefghijklmnopqrstuvwxyzäöüßABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜ
layout = us
auto_wildcard = TRUE
max_key_length = 50
auto_commit = FALSE
discard_invalid_key=FALSE
def_full_width_punct = TRUE
def_full_width_letter = TRUE
user_can_define_phrase = TRUE
pinyin_mode = FALSE
dynamic_adjust = TRUE 
hunspell_dict = de_DE.dic
ime_name = German - DE(Hunspell)
page_size = 6
symbol= De-DE(Hunspell)
lang_chars = esijanrtolcdugmphbyfvkwqxzäüößáéêàâñESIJANRTOLCDUGMPHBYFVKWQXZÄÜÖÉ-.
m17_mim_name = latn-post
encoding  = ISO8859-1
other_ime = True
setup = /usr/libexec/ibus-setup-typing-booster
tab_enable = Falsemfabian@ari:/usr/share/ibus-typing-booster/hunspell-tables
$ 

After doing that,

    /usr/libexec/ibus-engine-typing-booster --xml

segfaulted because it is using libtranslit to load the “latn-post” input
method which fails.

Comment 1 Mike FABIAN 2012-09-27 16:26:34 UTC
Created attachment 618201 [details]
0001-Make-it-work-for-input-methods-like-latn-post-latn-p.patch

Proposed patch to make it work. 

Also as a pull request here:

https://github.com/ueno/libtranslit/pull/1

Comment 2 Daiki Ueno 2012-10-01 08:00:56 UTC
You can use "t-latn-post" instead of "latn-post".