[Tutor] Absolute newbie - Transliteration

Magnus Lyckå magnus@thinkware.se
Fri May 23 08:26:01 2003


At 20:45 2003-05-22 -0700, David Rogers wrote:
>Can I put some letter-combinations that include the 'soft' symbol at the 
>beginning of my dictionary, and have them evaluated first, thus bypassing 
>the single-letter entries that come later?  Or does a dictionary work in 
>non-sequential order?

As you suspected, a dictionary isn't ordered, but
that doesn't matter if you loop through the original
string one character at a time does it? It's there
that the problem lies.

A dictionary only matches an exact key, so ordering
doesn't matter.

The other option would be to be slightly more advanced
as you pick out the characters from the original string,
but the solution I gave wasn't so bat was it?

I think that after-the-fact correction is simpler that
to try to get the soft consonants right at once.


--
Magnus Lycka (It's really Lyckå), magnus@thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The shortest path from thought to working program