OSDN Git Service

Bug fix to typesettings of daxu and xiaoxu notes.
authornangxiang <nangxiang@users.sourceforge.jp>
Mon, 1 Aug 2011 12:47:43 +0000 (21:47 +0900)
committernangxiang <nangxiang@users.sourceforge.jp>
Mon, 1 Aug 2011 12:47:43 +0000 (21:47 +0900)
dx2tex.rb

index 8e5ab13..a80464d 100644 (file)
--- a/dx2tex.rb
+++ b/dx2tex.rb
@@ -42,12 +42,11 @@ class TexConverter
     eword = @tex_commands.insert_extensions(word)
     pinyin = wordinfo['py']
     fanqie = wordinfo['fn']
-    exp = wordinfo['ex']
-    eexp = @tex_commands.insert_extensions(exp)
+    exp = @tex_commands.insert_extensions(wordinfo['ex'])
     duan = wordinfo['dn']
     daxu = wordinfo['dx']
-    daexp = wordinfo['dex']
-    xiaoexp = wordinfo['xex']
+    daexp = @tex_commands.insert_extensions(wordinfo['dex'])
+    xiaoexp = @tex_commands.insert_extensions(wordinfo['xex'])
     if daxu then
       unless @daxu_page == daxu then
         @wordlist.push(['page', daxu])
@@ -55,7 +54,7 @@ class TexConverter
       end
     end
     @wordlist.push([id, eword, sealchar, seal, pinyin, fanqie,
-                    eexp, daexp, xiaoexp])
+                    exp, daexp, xiaoexp])
   end
 end