aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.envrc-nix6
-rw-r--r--.gitignore18
-rw-r--r--flake.lock6
-rw-r--r--flake.nix58
-rw-r--r--lib/sisu/ao_hash_digest.rb2
-rw-r--r--lib/sisu/se_db.rb2
-rw-r--r--lib/sisu/se_info_env.rb6
-rw-r--r--lib/sisu/shared_images.rb10
-rw-r--r--lib/sisu/src_po4a_shelf.rb8
-rw-r--r--lib/sisu/src_po4a_sst_ao_sst.rb8
-rw-r--r--lib/sisu/texinfo.rb2
-rw-r--r--lib/sisu/texinfo_format.rb4
-rw-r--r--lib/sisu/txt_plain.rb2
-rw-r--r--lib/sisu/xhtml_epub2.rb9
-rw-r--r--org/abstraction.org2
-rw-r--r--org/config_env.org16
-rw-r--r--org/config_git.org18
-rw-r--r--org/config_nix.org58
-rw-r--r--org/env.org8
-rw-r--r--org/shared.org10
-rw-r--r--org/src.org16
-rw-r--r--org/texinfo.org7
-rw-r--r--org/txt.org2
-rw-r--r--org/xhtml.org9
24 files changed, 211 insertions, 76 deletions
diff --git a/.envrc-nix b/.envrc-nix
index f827dffa..50551ecc 100644
--- a/.envrc-nix
+++ b/.envrc-nix
@@ -1,7 +1,7 @@
NIX_ENFORCE_PURITY=1
# - https://github.com/nix-community/nix-direnv
-NixDirEnvVersion="3.0.6"
-NixDirEnvSHA="sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
+NixDirEnvVersion="3.0.7"
+NixDirEnvSHA="sha256-bn8WANE5a91RusFmRI7kS751ApelG02nMcwRekC/qzc="
if ! has nix_direnv_version || ! nix_direnv_version ${NixDirEnvVersion}; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/${NixDirEnvVersion}/direnvrc" "${NixDirEnvSHA}"
fi
@@ -23,7 +23,7 @@ echo "
❯❯ nix develop
❯❯ nix develop '.#' --print-build-logs -c zsh
- ❯❯ nix develop '.#dsh-latex-pdf' --print-build-logs -c zsh
+ ❯❯ nix develop '.#rsh-comprehensive-shell' --print-build-logs -c zsh
• to build project:
diff --git a/.gitignore b/.gitignore
index a96a9d46..90f0bd7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,6 +25,7 @@
!conf/
!conf/**
!*.json
+!*.md
!*.org
!org/
!org/*.org
@@ -74,13 +75,26 @@
*.gem
*.gemspec
!sisu.gemspec
-*_.rb
-*.rb_
0???-*.patch
*.gz
*.xz
*_
.*
+*_.org
+*_.nix
+*_.rb
+*.rb_
+*_.txt
+*_.md
+*_
+*.swp
+*~
+\#*
+*.\#*
+#!*/
+#\#*
+#*.\#*
+tmp/**
!.gitignore
!.gitattributes
!.envrc
diff --git a/flake.lock b/flake.lock
index 4bd7fb7d..9d3bb4e5 100644
--- a/flake.lock
+++ b/flake.lock
@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
- "lastModified": 1738009863,
- "narHash": "sha256-KxmFlQ2j9PpDhKRXWu85bv3R2wmfkUqdpJhEwz9JN/E=",
+ "lastModified": 1755829505,
+ "narHash": "sha256-4/Jd+LkQ2ssw8luQVkqVs9spDBVE6h/u/hC/tzngsPo=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "f898cbfddfab52593da301a397a17d0af801bbc3",
+ "rev": "f937f8ecd1c70efd7e9f90ba13dfb400cf559de4",
"type": "github"
},
"original": {
diff --git a/flake.nix b/flake.nix
index a7dbf157..26947fc5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -82,7 +82,7 @@
];
inherit shellHook;
};
- dsh-epub = mkShell {
+ rsh-epub = mkShell {
name = "sisu dev shell for epub output";
inherit shell;
inherit devEnv;
@@ -116,7 +116,7 @@
];
inherit shellHook;
};
- dsh-html = mkShell {
+ rsh-html = mkShell {
name = "sisu dev shell for html output";
inherit shell;
inherit devEnv;
@@ -136,7 +136,7 @@
];
inherit shellHook;
};
- dsh-latex-pdf = mkShell {
+ rsh-latex-pdf = mkShell {
name = "sisu dev shell for latex & pdf output";
inherit shell;
inherit devEnv;
@@ -153,7 +153,8 @@
source-sans-pro
source-serif-pro
source-code-pro
- texliveFull # texliveTeTeX
+ texlive.combined.scheme-full
+ # texliveFull # texliveTeTeX
noto-fonts
noto-fonts-cjk-sans
takao
@@ -163,7 +164,52 @@
];
inherit shellHook;
};
- dsh-sqlite = mkShell {
+ rsh-comprehensive-shell = mkShell {
+ name = "comprehensive sisu dev shell (for epub & latex & pdf output)";
+ inherit shell;
+ inherit devEnv;
+ packages = [
+ ruby
+ rubyPackages.rake
+ rubyPackages.sqlite3
+ rubyPackages.thor
+ sqlite
+ graphicsmagick
+ zip
+ unzip
+ xz
+ openssl
+ libxml2
+ html-tidy
+ xmlstarlet
+ epubcheck
+ ebook_tools
+ libxml2
+ html-tidy
+ xmlstarlet
+ epubcheck
+ ebook_tools
+ epr
+ sigil
+ calibre #(suite includes: ebook-viewer)
+ foliate
+ validatePkgConfig
+ jq
+ source-sans-pro
+ source-serif-pro
+ source-code-pro
+ texlive.combined.scheme-full
+ # texliveFull # texliveTeTeX
+ noto-fonts
+ noto-fonts-cjk-sans
+ takao
+ validatePkgConfig
+ jq
+ git
+ ];
+ inherit shellHook;
+ };
+ rsh-sqlite = mkShell {
name = "sisu dev shell for sqlite3 output";
inherit shell;
inherit devEnv;
@@ -183,7 +229,7 @@
];
inherit shellHook;
};
- dsh-i18n = mkShell {
+ rsh-i18n = mkShell {
name = "sisu dev shell internationalization, po4a";
inherit shell;
inherit devEnv;
diff --git a/lib/sisu/ao_hash_digest.rb b/lib/sisu/ao_hash_digest.rb
index 11c60d1f..739517eb 100644
--- a/lib/sisu/ao_hash_digest.rb
+++ b/lib/sisu/ao_hash_digest.rb
@@ -75,7 +75,7 @@ module SiSU_AO_Hash
if (t_o.of !=:structure \
&& t_o.of !=:comment \
&& t_o.of !=:layout) \
- && t_o.ocn.is_a?(Fixnum)
+ && t_o.ocn.is_a?(Integer)
case sha_
when :sha512
for hash_class in [ Digest::SHA512 ]
diff --git a/lib/sisu/se_db.rb b/lib/sisu/se_db.rb
index 87ce144a..ce52ceac 100644
--- a/lib/sisu/se_db.rb
+++ b/lib/sisu/se_db.rb
@@ -100,7 +100,7 @@ module SiSU_Info_Db
def port #PGPORT
((defined? @rc['db']['postgresql']['port']) \
&& ( @rc['db']['postgresql']['port'] =~/\d+/ \
- || @rc['db']['postgresql']['port'].is_a?(Fixnum))) \
+ || @rc['db']['postgresql']['port'].is_a?(Integer))) \
? @rc['db']['postgresql']['port']
: (@defaults[:postgresql_port])
end
diff --git a/lib/sisu/se_info_env.rb b/lib/sisu/se_info_env.rb
index 6af47f9d..7b9041d1 100644
--- a/lib/sisu/se_info_env.rb
+++ b/lib/sisu/se_info_env.rb
@@ -1488,10 +1488,10 @@ WOK
: "#{md.opt.sisu_data_dir?}/sisu/image"
images=%W[bullet_09.png arrow_next_red.png arrow_prev_red.png arrow_up_red.png]
images.each do |i| #move to avoid repeated tests
- if FileTest.file?("#{src}/#{i}")
+ if Pathname#exist?("#{src}/#{i}")
FileUtils::cp("#{src}/#{i}","#{pth}/#{i}") \
- unless FileTest.file?("#{pth}/#{i}")
- else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]}
+ unless Pathname#exist?("#{pth}/#{i}")
+ else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}] [#{src}/#{i}]}
end
end
pth
diff --git a/lib/sisu/shared_images.rb b/lib/sisu/shared_images.rb
index ad5269e9..bccf77bd 100644
--- a/lib/sisu/shared_images.rb
+++ b/lib/sisu/shared_images.rb
@@ -71,19 +71,21 @@ module SiSU_Images
def images_set
@pwd=(/(\S+?)(?:\/(?:#{Px[:lng_lst_rgx]}))?$/).match(Dir.pwd)[1]
def copy(src_path,dest_path,images=nil)
- if FileTest.directory?(src_path)
+ require 'pathname'
+ src_path = Pathname.new(src_path)
+ dest_path = Pathname.new(dest_path)
+ if src_path.directory?
FileUtils::cd(src_path)
unless images
images=Dir.glob("*.{png,jpg,gif,ico}")
end
- unless FileTest.directory?(dest_path) \
- or FileTest.symlink?(dest_path)
+ unless dest_path.directory?
FileUtils::mkdir_p(dest_path)
FileUtils::chmod(0755,dest_path)
end
if images.length > 0
images.each do |i|
- if FileTest.file?(i)
+ if Pathname#exist?(i)
FileUtils::cp_r(i,"#{dest_path}/#{i}")
FileUtils::chmod(0644,"#{dest_path}/#{i}")
else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]}
diff --git a/lib/sisu/src_po4a_shelf.rb b/lib/sisu/src_po4a_shelf.rb
index c2387973..38ddc84c 100644
--- a/lib/sisu/src_po4a_shelf.rb
+++ b/lib/sisu/src_po4a_shelf.rb
@@ -946,15 +946,15 @@ GSUB
end
end
if ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn == data_trn[t].ocn)
@m_s,@m_t=s,t
elsif ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn != data_trn[t].ocn)
p '--- OCN ---'
p 'mis-match'
diff --git a/lib/sisu/src_po4a_sst_ao_sst.rb b/lib/sisu/src_po4a_sst_ao_sst.rb
index 720dd8f0..4dd84b9b 100644
--- a/lib/sisu/src_po4a_sst_ao_sst.rb
+++ b/lib/sisu/src_po4a_sst_ao_sst.rb
@@ -701,15 +701,15 @@ GSUB
end
end
if ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn == data_trn[t].ocn)
@m_s,@m_t=s,t
elsif ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn != data_trn[t].ocn)
p '--- OCN ---'
p 'mis-match'
diff --git a/lib/sisu/texinfo.rb b/lib/sisu/texinfo.rb
index 87747a77..985ddf0c 100644
--- a/lib/sisu/texinfo.rb
+++ b/lib/sisu/texinfo.rb
@@ -343,7 +343,7 @@ module SiSU_TexInfo
else
if dob.is==:para \
&& (dob.obj !~/#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}/)
- dob.obj=dob.ocn.is_a?(Fixnum) \
+ dob.obj=dob.ocn.is_a?(Integer) \
? "#{dob.obj} #{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}\n\n" : "#{dob.obj}\n\n"
end
end
diff --git a/lib/sisu/texinfo_format.rb b/lib/sisu/texinfo_format.rb
index 3f53c2cd..d9ff1f40 100644
--- a/lib/sisu/texinfo_format.rb
+++ b/lib/sisu/texinfo_format.rb
@@ -269,7 +269,7 @@ WOK
def clean(dob)
if dob.is==:heading \
and dob.obj !~/#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}/
- dob.obj=dob.ocn.is_a?(Fixnum) \
+ dob.obj=dob.ocn.is_a?(Integer) \
? "#{dob.obj} #{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}" : dob.obj
end
dob.obj=dob.obj.gsub(/\n/m,' ').
@@ -512,7 +512,7 @@ WOK
def clean(dob,txt)
if dob.is==:heading \
and txt !~/#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}/
- txt=dob.ocn.is_a?(Fixnum) \
+ txt=dob.ocn.is_a?(Integer) \
? "#{dob.obj} #{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}" : dob.obj
end
txt.strip
diff --git a/lib/sisu/txt_plain.rb b/lib/sisu/txt_plain.rb
index d4f06f8f..9c6a3aae 100644
--- a/lib/sisu/txt_plain.rb
+++ b/lib/sisu/txt_plain.rb
@@ -251,7 +251,7 @@ WOK
make=SiSU_Env::ProcessingSettings.new(@md)
if make.build.plaintext_ocn?
if defined? dob.ocn \
- and dob.ocn.is_a?(Fixnum)
+ and dob.ocn.is_a?(Integer)
(defined? dob.ocn) \
? "\n#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}" \
: ''
diff --git a/lib/sisu/xhtml_epub2.rb b/lib/sisu/xhtml_epub2.rb
index 58ee7672..5ba80da0 100644
--- a/lib/sisu/xhtml_epub2.rb
+++ b/lib/sisu/xhtml_epub2.rb
@@ -784,10 +784,11 @@ module SiSU_XHTML_EPUB2
end
end
def images
-#puts @md.env.path.image_source_include
-#puts @md.env.processing_path.epub
-#puts @md.env.path.image_source_include_local
-puts @md.file.output_path.epub.rel_image
+#REMOVE
+#puts @md.env.path.image_source_include + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.env.processing_path.epub + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.env.path.image_source_include_local + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.file.output_path.epub.rel_image + ' : ' + __FILE__ + ':' + __LINE__.to_s
#img_pth=$sisu_base_data + '/image'
img_pth=@md.env.path.image_source_include
img_src_pth=unless @md.opt.f_pth[:pth] =~/\/\S+?\/sisupod\/\S+?\/sisupod\/doc/
diff --git a/org/abstraction.org b/org/abstraction.org
index 695c8e73..8f885e88 100644
--- a/org/abstraction.org
+++ b/org/abstraction.org
@@ -4957,7 +4957,7 @@ module SiSU_AO_Hash
if (t_o.of !=:structure \
&& t_o.of !=:comment \
&& t_o.of !=:layout) \
- && t_o.ocn.is_a?(Fixnum)
+ && t_o.ocn.is_a?(Integer)
case sha_
when :sha512
for hash_class in [ Digest::SHA512 ]
diff --git a/org/config_env.org b/org/config_env.org
index 83dcd2eb..5fcf7a53 100644
--- a/org/config_env.org
+++ b/org/config_env.org
@@ -84,7 +84,7 @@ echo "
❯❯ nix develop
❯❯ nix develop '.#' --print-build-logs -c zsh
- ❯❯ nix develop '.#dsh-latex-pdf' --print-build-logs -c zsh
+ ❯❯ nix develop '.#rsh-comprehensive-shell' --print-build-logs -c zsh
• to build project:
@@ -94,15 +94,25 @@ echo "
"
#+END_SRC
-*** 3.0.6
+*** 3.0.7
#+NAME: direnv-version
#+BEGIN_SRC shell
-3.0.6
+3.0.7
#+END_SRC
#+NAME: direnv-sha
#+BEGIN_SRC shell
+sha256-bn8WANE5a91RusFmRI7kS751ApelG02nMcwRekC/qzc=
+#+END_SRC
+
+*** 3.0.6
+
+#+BEGIN_SRC shell
+3.0.6
+#+END_SRC
+
+#+BEGIN_SRC shell
sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM=
#+END_SRC
diff --git a/org/config_git.org b/org/config_git.org
index baedbd8e..eb3d596e 100644
--- a/org/config_git.org
+++ b/org/config_git.org
@@ -47,6 +47,7 @@
!conf/
!conf/**
!*.json
+!*.md
!*.org
!org/
!org/*.org
@@ -96,13 +97,26 @@
,*.gem
,*.gemspec
!sisu.gemspec
-,*_.rb
-,*.rb_
0???-*.patch
,*.gz
,*.xz
,*_
.*
+,*_.org
+,*_.nix
+,*_.rb
+,*.rb_
+,*_.txt
+,*_.md
+,*_
+,*.swp
+,*~
+\#*
+,*.\#*
+#!*/
+#\#*
+#*.\#*
+tmp/**
!.gitignore
!.gitattributes
!.envrc
diff --git a/org/config_nix.org b/org/config_nix.org
index 33014ad3..b7085e73 100644
--- a/org/config_nix.org
+++ b/org/config_nix.org
@@ -102,7 +102,7 @@
];
inherit shellHook;
};
- dsh-epub = mkShell {
+ rsh-epub = mkShell {
name = "sisu dev shell for epub output";
inherit shell;
inherit devEnv;
@@ -133,7 +133,7 @@
];
inherit shellHook;
};
- dsh-html = mkShell {
+ rsh-html = mkShell {
name = "sisu dev shell for html output";
inherit shell;
inherit devEnv;
@@ -150,7 +150,7 @@
];
inherit shellHook;
};
- dsh-latex-pdf = mkShell {
+ rsh-latex-pdf = mkShell {
name = "sisu dev shell for latex & pdf output";
inherit shell;
inherit devEnv;
@@ -164,7 +164,8 @@
source-sans-pro
source-serif-pro
source-code-pro
- texliveFull # texliveTeTeX
+ texlive.combined.scheme-full
+ # texliveFull # texliveTeTeX
noto-fonts
noto-fonts-cjk-sans
takao
@@ -174,7 +175,52 @@
];
inherit shellHook;
};
- dsh-sqlite = mkShell {
+ rsh-comprehensive-shell = mkShell {
+ name = "comprehensive sisu dev shell (for epub & latex & pdf output)";
+ inherit shell;
+ inherit devEnv;
+ packages = [
+ ruby
+ rubyPackages.rake
+ rubyPackages.sqlite3
+ rubyPackages.thor
+ sqlite
+ graphicsmagick
+ zip
+ unzip
+ xz
+ openssl
+ libxml2
+ html-tidy
+ xmlstarlet
+ epubcheck
+ ebook_tools
+ libxml2
+ html-tidy
+ xmlstarlet
+ epubcheck
+ ebook_tools
+ epr
+ sigil
+ calibre #(suite includes: ebook-viewer)
+ foliate
+ validatePkgConfig
+ jq
+ source-sans-pro
+ source-serif-pro
+ source-code-pro
+ texlive.combined.scheme-full
+ # texliveFull # texliveTeTeX
+ noto-fonts
+ noto-fonts-cjk-sans
+ takao
+ validatePkgConfig
+ jq
+ git
+ ];
+ inherit shellHook;
+ };
+ rsh-sqlite = mkShell {
name = "sisu dev shell for sqlite3 output";
inherit shell;
inherit devEnv;
@@ -191,7 +237,7 @@
];
inherit shellHook;
};
- dsh-i18n = mkShell {
+ rsh-i18n = mkShell {
name = "sisu dev shell internationalization, po4a";
inherit shell;
inherit devEnv;
diff --git a/org/env.org b/org/env.org
index 87feb912..248cf044 100644
--- a/org/env.org
+++ b/org/env.org
@@ -773,7 +773,7 @@ module SiSU_Info_Db
def port #PGPORT
((defined? @rc['db']['postgresql']['port']) \
&& ( @rc['db']['postgresql']['port'] =~/\d+/ \
- || @rc['db']['postgresql']['port'].is_a?(Fixnum))) \
+ || @rc['db']['postgresql']['port'].is_a?(Integer))) \
? @rc['db']['postgresql']['port']
: (@defaults[:postgresql_port])
end
@@ -5943,10 +5943,10 @@ WOK
: "#{md.opt.sisu_data_dir?}/sisu/image"
images=%W[bullet_09.png arrow_next_red.png arrow_prev_red.png arrow_up_red.png]
images.each do |i| #move to avoid repeated tests
- if FileTest.file?("#{src}/#{i}")
+ if Pathname#exist?("#{src}/#{i}")
FileUtils::cp("#{src}/#{i}","#{pth}/#{i}") \
- unless FileTest.file?("#{pth}/#{i}")
- else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]}
+ unless Pathname#exist?("#{pth}/#{i}")
+ else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}] [#{src}/#{i}]}
end
end
pth
diff --git a/org/shared.org b/org/shared.org
index 34d17bd0..ced99872 100644
--- a/org/shared.org
+++ b/org/shared.org
@@ -152,19 +152,21 @@ module SiSU_Images
def images_set
@pwd=(/(\S+?)(?:\/(?:#{Px[:lng_lst_rgx]}))?$/).match(Dir.pwd)[1]
def copy(src_path,dest_path,images=nil)
- if FileTest.directory?(src_path)
+ require 'pathname'
+ src_path = Pathname.new(src_path)
+ dest_path = Pathname.new(dest_path)
+ if src_path.directory?
FileUtils::cd(src_path)
unless images
images=Dir.glob("*.{png,jpg,gif,ico}")
end
- unless FileTest.directory?(dest_path) \
- or FileTest.symlink?(dest_path)
+ unless dest_path.directory?
FileUtils::mkdir_p(dest_path)
FileUtils::chmod(0755,dest_path)
end
if images.length > 0
images.each do |i|
- if FileTest.file?(i)
+ if Pathname#exist?(i)
FileUtils::cp_r(i,"#{dest_path}/#{i}")
FileUtils::chmod(0644,"#{dest_path}/#{i}")
else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]}
diff --git a/org/src.org b/org/src.org
index b3df2b03..6763135f 100644
--- a/org/src.org
+++ b/org/src.org
@@ -1413,15 +1413,15 @@ GSUB
end
end
if ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn == data_trn[t].ocn)
@m_s,@m_t=s,t
elsif ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn != data_trn[t].ocn)
p '--- OCN ---'
p 'mis-match'
@@ -2584,15 +2584,15 @@ GSUB
end
end
if ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn == data_trn[t].ocn)
@m_s,@m_t=s,t
elsif ((defined? data_src[s].ocn) \
- && (data_src[s].ocn.is_a?(Fixnum))) \
+ && (data_src[s].ocn.is_a?(Integer))) \
and ((defined? data_trn[t].ocn) \
- && (data_trn[t].ocn.is_a?(Fixnum))) \
+ && (data_trn[t].ocn.is_a?(Integer))) \
and (data_src[s].ocn != data_trn[t].ocn)
p '--- OCN ---'
p 'mis-match'
diff --git a/org/texinfo.org b/org/texinfo.org
index 03d33ea9..9cf02e79 100644
--- a/org/texinfo.org
+++ b/org/texinfo.org
@@ -2,7 +2,6 @@
#+TITLE: sisu texinfo
#+DESCRIPTION: documents - structuring, various output representations & search
#+FILETAGS: :sisu:texinfo:
-:wqa
#+AUTHOR: Ralph Amissah
#+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]]
#+COPYRIGHT: Copyright (C) 2015 - 2021 Ralph Amissah
@@ -317,7 +316,7 @@ module SiSU_TexInfo
else
if dob.is==:para \
&& (dob.obj !~/#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}/)
- dob.obj=dob.ocn.is_a?(Fixnum) \
+ dob.obj=dob.ocn.is_a?(Integer) \
? "#{dob.obj} #{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}\n\n" : "#{dob.obj}\n\n"
end
end
@@ -624,7 +623,7 @@ WOK
def clean(dob)
if dob.is==:heading \
and dob.obj !~/#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}/
- dob.obj=dob.ocn.is_a?(Fixnum) \
+ dob.obj=dob.ocn.is_a?(Integer) \
? "#{dob.obj} #{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}" : dob.obj
end
dob.obj=dob.obj.gsub(/\n/m,' ').
@@ -867,7 +866,7 @@ WOK
def clean(dob,txt)
if dob.is==:heading \
and txt !~/#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}/
- txt=dob.ocn.is_a?(Fixnum) \
+ txt=dob.ocn.is_a?(Integer) \
? "#{dob.obj} #{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}" : dob.obj
end
txt.strip
diff --git a/org/txt.org b/org/txt.org
index 616633f9..5e020c8a 100644
--- a/org/txt.org
+++ b/org/txt.org
@@ -1667,7 +1667,7 @@ WOK
make=SiSU_Env::ProcessingSettings.new(@md)
if make.build.plaintext_ocn?
if defined? dob.ocn \
- and dob.ocn.is_a?(Fixnum)
+ and dob.ocn.is_a?(Integer)
(defined? dob.ocn) \
? "\n#{Dx[:ocn_o]}#{dob.ocn}#{Dx[:ocn_c]}" \
: ''
diff --git a/org/xhtml.org b/org/xhtml.org
index 3aef5c7e..1e57ea74 100644
--- a/org/xhtml.org
+++ b/org/xhtml.org
@@ -1180,10 +1180,11 @@ module SiSU_XHTML_EPUB2
end
end
def images
-#puts @md.env.path.image_source_include
-#puts @md.env.processing_path.epub
-#puts @md.env.path.image_source_include_local
-puts @md.file.output_path.epub.rel_image
+#REMOVE
+#puts @md.env.path.image_source_include + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.env.processing_path.epub + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.env.path.image_source_include_local + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.file.output_path.epub.rel_image + ' : ' + __FILE__ + ':' + __LINE__.to_s
#img_pth=$sisu_base_data + '/image'
img_pth=@md.env.path.image_source_include
img_src_pth=unless @md.opt.f_pth[:pth] =~/\/\S+?\/sisupod\/\S+?\/sisupod\/doc/