diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-07-06 14:33:23 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-07-06 14:33:23 -0400 |
commit | 896caee855acd8a18f0c466d96cee3c76ae092cc (patch) | |
tree | e7c1122aefa98ee606eafff5f4c3e4ecaf21b403 /lib | |
parent | sysenv, make output directory if needed (if possible) (diff) |
texpdf_format, output special characters, special circumstance fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/texpdf_format.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sisu/v2/texpdf_format.rb b/lib/sisu/v2/texpdf_format.rb index ba615749..52c630cf 100644 --- a/lib/sisu/v2/texpdf_format.rb +++ b/lib/sisu/v2/texpdf_format.rb @@ -967,7 +967,10 @@ WOK w.gsub!(/[#{Mx[:br_line]}#{Mx[:br_paragraph]}]/,' \newline ') #watch w.gsub!(/#{Mx[:gl_o]}#(?:126|152)#{Mx[:gl_c]}/,'<=tilde>') #126 usual w.gsub!(/\\?\||#{Mx[:gl_o]}#124#{Mx[:gl_c]}/,'<=pipe>') #unless is=='code' #unless w=~/<~\d+;(?:[ohmu]|[0-6]:)\d+;\w\d+>/ # | SiSU not really special sisu character but done, also LaTeX - w.gsub!(/\#/,'<=hash>') unless w =~/#{Mx[:rel_o]}/ + if w !~/#{Mx[:rel_o]}/ \ + and w !~/#{Mx[:gl_o]}#/ + w.gsub!(/\#/,'<=hash>') + end para_array << w end str=para_array.join(' ') |