<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>11540</bug_id>
          
          <creation_ts>2007-04-18 00:09:36 +0400</creation_ts>
          <short_desc>Lyx2Lyx conversion troubles</short_desc>
          <delta_ts>2007-12-20 01:25:46 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>lyx</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel Boldin">bp</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>grenka</cc>
    
    <cc>lav</cc>
    
    <cc>oddity</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49005</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Boldin">bp</who>
    <bug_when>2007-04-18 00:09:38 +0400</bug_when>
    <thetext>lyx-1.5.0 lyx2lyx кодировка из koi8 в utf8

В файле lyx2lyx_lang.py стоит заменить koi8 на koi8-r.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50050</commentid>
    <comment_count>1</comment_count>
    <who name="serpiph">serpiph</who>
    <bug_when>2007-05-10 12:01:51 +0400</bug_when>
    <thetext>Подтверждаю, сам споткнулся. Виталий, давно бы уже исправили ошибку и закрыли.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50087</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2007-05-10 23:57:36 +0400</bug_when>
    <thetext>Да, сам сегодня наткнулся. Только кодировку (koi -&gt; koi8-r) вроде как надо 
менять в lib/language, причём до сборки.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51618</commentid>
    <comment_count>3</comment_count>
    <who name="swi">swi</who>
    <bug_when>2007-06-19 11:54:57 +0400</bug_when>
    <thetext>fixed in lyx-1.5.0-alt3.rc1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56726</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2007-10-19 01:54:13 +0400</bug_when>
    <thetext>Пытаюсь сконвертировать образец из пакета lyx-gost-koi8-r:

$ /usr/share/lyx/lyx2lyx/lyx2lyx GOST-koi8-r.lyx

Traceback (most recent call last):
  File &quot;/usr/share/lyx/lyx2lyx/lyx2lyx&quot;, line 101, in ?
    sys.exit(main(sys.argv))
  File &quot;/usr/share/lyx/lyx2lyx/lyx2lyx&quot;, line 95, in main
    file.write()
  File &quot;/usr/share/lyx/lyx2lyx/LyX.py&quot;, line 278, in write
    self.output.write(line.encode(self.encoding)+&quot;\n&quot;)
UnicodeDecodeError: &apos;ascii&apos; codec can&apos;t decode byte 0xee in position 14: 
ordinal not in range(128)

Ошибки не нашёл :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56731</commentid>
    <comment_count>5</comment_count>
    <who name="swi">swi</who>
    <bug_when>2007-10-19 11:00:44 +0400</bug_when>
    <thetext>ошибку нашел и замучил в lyx-1.5.2-alt2
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56787</commentid>
    <comment_count>6</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2007-10-21 13:38:03 +0400</bug_when>
    <thetext>Всё равно ошибка:

$ /usr/share/lyx/lyx2lyx/lyx2lyx /usr/share/lyx/templates/GOST-koi8-r.lyx

File &quot;/usr/share/lyx/lyx2lyx/LyX.py&quot;, line 278, in write
    self.output.write(line.encode(self.encoding)+&quot;\n&quot;)
UnicodeDecodeError: &apos;ascii&apos; codec can&apos;t decode byte 0xee in position 14: 
ordinal not in range(128)

$ rpm -q lyx
lyx-1.5.2-alt2
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56793</commentid>
    <comment_count>7</comment_count>
    <who name="swi">swi</who>
    <bug_when>2007-10-21 17:42:27 +0400</bug_when>
    <thetext>а дайте grep types LyX.py ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56802</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2007-10-21 22:37:20 +0400</bug_when>
    <thetext>пусто
$ grep types /usr/share/lyx/lyx2lyx/LyX.py
[lav@lav ~]$     
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56826</commentid>
    <comment_count>9</comment_count>
    <who name="swi">swi</who>
    <bug_when>2007-10-22 14:44:31 +0400</bug_when>
    <thetext>Уппс. Нашел. Я тег в гите подвинул а проапдейтить сие в master забыл. Так. тут
другая фигня вылезла. Этот же LyX.py используется при генерации доков. Причем
там используется класс NewFile(LyX_Base). Проблема в том что в этом случае у
него нет self.inputencoding. Я вижу тут только один выход. Переопределить
функцию write (на который затык при сборке toc) в класе NewFile к
первоначальному виду.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56828</commentid>
    <comment_count>10</comment_count>
    <who name="swi">swi</who>
    <bug_when>2007-10-22 15:12:28 +0400</bug_when>
    <thetext>пробуем alt3 Однако :-\</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56912</commentid>
    <comment_count>11</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2007-10-24 01:00:33 +0400</bug_when>
    <thetext>Спасибо огромное. Работает!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>