diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-01-15 23:38:04 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-01-19 23:46:16 -0500 |
commit | 45d6d69d89fb6a8ad36be13f22c6af0b2a7cbc9a (patch) | |
tree | 8f46e71fff365c1ad2dcbf2a8497b87dcd7973f6 /lib/sisu/develop/src_shared.rb | |
parent | d: po4a_shelf, shelf current po4a, change tack (diff) |
d: po4a, initialize either directly with sst or passed through ao
* creates source language directory with source markup files
(.sst .ssm .ssi) & the po4a.cfg configuration file, then runs
po4a to place the markup source under po4a translation
management
* --po4a-sst uses original sisu markup source as described above
* --po4a-ao passes sisu source markup through document abstraction
before converting back to a sisu markup source markup equivalent
of the original document, it does this in an attempt to get more
uniform output, and put footnotes for example if any in a form
that is easier to translate
--po4a-ao -v --trans-en:fr,es en/live-manual.ssm
--po4a-ao -v --trans-en:fr,es en/live-manual.ssm \
es/live-manual.ssm
in the latter example also runs sisu marked up "es" document
through document abstraction and returns a sisu markup source
version of the document, and against this gettext is (or can be
run) to (attempt to) have the source and target languages
together in the po/es file
* all quite rough, will need to be revisited,
* these for now replace the renamed --po4a-shelf (formerly --po4a)
Diffstat (limited to 'lib/sisu/develop/src_shared.rb')
-rw-r--r-- | lib/sisu/develop/src_shared.rb | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/lib/sisu/develop/src_shared.rb b/lib/sisu/develop/src_shared.rb index 948342c7..150ce84e 100644 --- a/lib/sisu/develop/src_shared.rb +++ b/lib/sisu/develop/src_shared.rb @@ -171,12 +171,16 @@ module SiSU_Source ) else STDERR.puts \ - %{\t*WARN* did not find image - "#{images_pwd}/#{i}" [#{__FILE__}:#{__LINE__}]} + %{\t*WARN* did not find image - } \ + + %{"#{images_pwd}/#{i}" } \ + + %{[#{__FILE__}:#{__LINE__}]} end end else STDERR.puts \ - %{\t*WARN* did not find - #{images_pwd} #{@path_pod[:image]} [#{__FILE__}:#{__LINE__}]} + %{\t*WARN* did not find - } \ + + %{#{images_pwd} #{@path_pod[:image]} } \ + + %{[#{__FILE__}:#{__LINE__}]} end end if doc_import_list.length > 0 \ @@ -189,7 +193,9 @@ module SiSU_Source ) else STDERR.puts \ - %{\t*WARN* did not find image - "#{@opt.base_path}#{doc_import_dir}/#{f}" [#{__FILE__}:#{__LINE__}]} + %{\t*WARN* did not find image - } \ + + %{"#{@opt.base_path}#{doc_import_dir}/#{f}" } \ + + %{[#{__FILE__}:#{__LINE__}]} end end end @@ -213,7 +219,9 @@ module SiSU_Source ) else STDERR.puts \ - %{\t*WARN* did not find - "#{@opt.base_path}#{doc_import_dir}/#{f[:f]}" [#{__FILE__}:#{__LINE__}]} + %{\t*WARN* did not find - } \ + + %{"#{@opt.base_path}#{doc_import_dir}/#{f[:f]}" } \ + + %{[#{__FILE__}:#{__LINE__}]} end else if FileTest.file?("#{@opt.base_path}/#{f[:f]}") @@ -234,7 +242,9 @@ module SiSU_Source end else STDERR.puts \ - %{\t*WARN* did not find - "#{@opt.base_path}/#{f[:f]}" [#{__FILE__}:#{__LINE__}]} + %{\t*WARN* did not find - } \ + + %{"#{@opt.base_path}/#{f[:f]}" } \ + + %{[#{__FILE__}:#{__LINE__}]} end end end @@ -247,7 +257,9 @@ module SiSU_Source ) else STDERR.puts \ - %{\t*WARN* did not find - "#{@opt.base_path}#{doc_import_dir}/#{f[:f]}" [#{__FILE__}:#{__LINE__}]} + %{\t*WARN* did not find - } \ + + %{"#{@opt.base_path}#{doc_import_dir}/#{f[:f]}" } \ + + %{[#{__FILE__}:#{__LINE__}]} end else if FileTest.file?("#{@opt.base_path}#{doc_import_dir}/#{f[:f]}") @@ -268,7 +280,9 @@ module SiSU_Source end else STDERR.puts \ - %{\t*WARN* did not find - "#{@opt.base_path}#{doc_import_dir}/#{f[:f]}" [#{__FILE__}:#{__LINE__}]} + %{\t*WARN* did not find - } \ + + %{"#{@opt.base_path}#{doc_import_dir}/#{f[:f]}" } \ + + %{[#{__FILE__}:#{__LINE__}]} end end end |