Mac-Roman to UTF8 project converter
Ned Konz
ned at squeakland.org
Sun Mar 13 02:14:42 UTC 2005
On Saturday 12 March 2005 3:44 pm, Hilaire Fernandes wrote:
> Ned Konz a écrit :
> > You can do it after the fact:
> >
> > project := Project named: 'Astuces diverses'.
> > project world allMorphsDo: [ :m | m isTextMorph ifTrue: [ m newContents:
> > (m contents squeakToIso) ] ifFalse: [ (m isKindOf: StringMorph) ifTrue: [
> > m contents: (m contents squeakToIso) ]]].
>
> Thanks, it helps a little. Note that it does not completely work for
> BookMorph, only the opened page is converted.
Yes, I think that there are special cases like that where there are Morphs
that are being held by other morphs but not as submorphs. This could be
extended to take care of BookMorphs, but there may still be some others (like
for instance I'm not sure about ScriptEditorMorphs that aren't being
displayed).
> > Still, it seems as if the import should have converted the strings (I
> > think).
>
> What do you mean?
At project load time, we know whether the project was saved in an earlier
version of Squeak, so we could translate the string automatically while
loading.
As it is, we're fixing up the fonts at that time. It wouldn't be too much
extra work to also do the strings.
--
Ned Konz
http://bike-nomad.com/squeak/
More information about the Squeak-dev
mailing list
|