From bb3101d1de34c95f8e6d95c55e5b3cfaa0fe303f Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 3 Oct 2012 00:18:03 -0400 Subject: v4: defaults, some cleaning --- lib/sisu/v4/defaults.rb | 705 +----------------------------------------------- 1 file changed, 4 insertions(+), 701 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v4/defaults.rb b/lib/sisu/v4/defaults.rb index 0b1c4d6c..fbb7c8af 100644 --- a/lib/sisu/v4/defaults.rb +++ b/lib/sisu/v4/defaults.rb @@ -52,7 +52,7 @@ - ** Description: Default values (reset by skins) + ** Description: Default values =end $latex_run=nil @@ -321,21 +321,6 @@ module SiSU_Viz def url_path_image_sys #used for html image display "#{Xx[:html_relative2]}_sisu/image_sys" end - def url_path_image_epub - './image' - end - def url_path_ebook_dir - './ebook' - end - def url_path_ebook_images - '.' - end - def url_promo - '' - end - def url_promo_home - '' - end def url_decoration def tex_open #'{\UseTextSymbol{OML}{<}}' Dx[:url_o] @@ -379,9 +364,6 @@ module SiSU_Viz self end #% color - def color_shadow - '"4"' - end def color_body %{} end @@ -391,18 +373,6 @@ module SiSU_Viz def color_black '#000000' end - def color_shadow #hmmm - '"4"' - end - def color_blue_dark - '#000099' - end - def color_blue - 'blue' - end - def color_blue_base - '#b9d4dd' - end def color_blue_ink '#003399' end @@ -530,46 +500,12 @@ module SiSU_Viz def icon_pdf_landscape 'b_pdf.png' end - def icon_status - 'b_status.png' - end - def icon_external - 'b_ext.png' - end - def icon_external_toc - 'b_ext_toc.png' - end - def icon_seg_toc - 'b_bluebell.png' - end - def icon_crosslink_toc - 'b_amber.png' - end - def icon_mail - 'b_mail.png' - end - def icon_para - 'b_para.png' - end - def icon_pdf - 'b_pdf.png' - end - def icon_ftp - 'b_ftp.png' - end - def icon_gopher - 'b_gopher.png' - end def icon_choice 'b_choice.png' end def icon_new 'b_new.png' end - def icon_book - 'b_amber.png' - # b_book.png - end def icon_dot_clear 'dot_clear.png' end @@ -579,27 +515,9 @@ module SiSU_Viz def icon_dot icon_dot_white end - def icon_amber - 'b_amber.png' - end - def icon_rose - 'b_rose.png' - end - def icon_bluebell - 'b_bluebell.png' - end def icon_home_button 'sisu.png' end - def icon_home_banner - 'sisu.png' - end - def icon_site - 'b_home.png' - end - def icon_bluedot - 'blueband.png' - end def icon_next 'arrow_next_red.png' end @@ -616,27 +534,9 @@ module SiSU_Viz def font_face %{face="#{font_fonts}"} end - def font_lmtoc_face - %{face="#{font_fonts}"} - end - def font_ebook_face - %{face="#{font_fonts}"} - end - def font_face_lmtoc - %{face="#{font_fonts}"} - end def font_color 'color="#000000"' end - def font_size - 'size="4"' - end - def font_size_txt - 'size="4"' - end - def font_size_txt_00 - 'size="3"' - end def font_size_endnote 'size="3"' end @@ -699,48 +599,19 @@ module SiSU_Viz def paragraph_txt %{

} end - def paragraph_txt_00 - %{

} - end - def paragraph_font_citation - %{} - end def paragraph_endnote %{

} end - def paragraph_table - %{

} - end - def paragraph_tiny - %{

} - end - def paragraph_small - %{

} # keep but not used? - end def paragraph_font_tiny %{} end def paragraph_font_small %{} end - def paragraph_heading_1 - %{

} - end - def paragraph_heading_1_center - %{

} - end #% table def table_close ' ' - end - def table_close_centered_table - end - def table_align_A - end - def table_align_B - end - def table_align_C end def table_width_1 '"100%"' @@ -748,58 +619,15 @@ module SiSU_Viz def table_width_2 '"99%"' end - def table_width_3 - '"94%"' - end - def table_width_4 - '"90%"' - end def table_width_txt '"94%"' end - def table_width_txt_avgo - '"100%"' - end def table_width_txt_r '"96%"' end - def table_cellpad_small_paper_margins - '"6"' - end - def table_cellpad_paper_margins - '"36"' - end - def table_cellpad_A - '"0"' - end - def table_cellpad_B - '"20"' - end - def table_cellpad_shadow - '"4"' - end - def table_cellpad_band - '"16"' - end def table_cellpad_box '"20"' end - def table_table_align_A - '
' - end - def table_table_align_B - '
' - end - def table_table_align_C - ' ' - end - #% table_do - def table_do_table_paper - %{#{table_align_C}
\n

\n} - end - def table_do_table_surround - %{ -
\n} - end #% indent def indent_level_0 '"1%"' @@ -826,16 +654,6 @@ module SiSU_Viz def margin_num_css ' ' - end - def margin_num_header - '' - end - def margin_txt_00_1 - %{ - -
-} end def margin_txt_w1 %{ @@ -868,7 +686,7 @@ module SiSU_Viz
} end - def margin_css #unused, check + def margin_css '
' end @@ -881,18 +699,9 @@ module SiSU_Viz SiSU } end - def png_hp - dir=SiSU_Env::InfoEnv.new #(@fns) - %{ - #{txt_home} - } - end def png_site %{@} end - def png_homepage - png_site - end def png_nav %{Contents} end @@ -920,39 +729,6 @@ module SiSU_Viz def png_pdf_landscape %{PDF landscape} end - def png_wmp - %{Concordance} - end - def png_para - %{Segment} - end - def png_status - %{Membership status} - end - def png_mark - %{*} - end - def png_doc_tiny - %{Doc} - end - def png_toc_tiny - %{TOC} - end - def png_status_tiny - %{Status, Member States} - end - def png_ftp - %{FTP} - end - def png_gopher - %{Gopher} - end - def png_crosslink - %{lateral hop} - end - def png_crosslink_ext - %{lateral hop} - end def png_home #dir=SiSU_Env::InfoEnv.new #(@fns) %{#{txt_home} -->} @@ -962,82 +738,8 @@ module SiSU_Viz rel=@dir.path_rel_links.html_scroll_2 %{#{txt_home} -->} end - def png_book - %{Cameron May Books} - end #% png_nav #not currently used - def png_nav_home - end - def png_nav_toc - %{TOC} - end - def png_nav_doc - end - def png_nav_previous - %{<< previous} - end - def png_nav_next - %{next >>} - end - def png_nav_pre - png_nav_previous - end - def png_nav_nxt - png_nav_next - end - def epub_png_nav_previous - %{<< previous} - end - def epub_png_nav_next - %{next >>} - end - def epub_png_nav_up - %{^up ^} - end - def epub_png_nav_pre - epub_png_nav_previous - end - def epub_png_nav_nxt - epub_png_nav_next - end - def epub_png_nav_toc - epub_png_nav_up - end - def png_nav_pdf - %{PDF} - end - def png_nav_pdf_portrait - %{pdf portrait} - end - def png_nav_pdf_landscape - %{pdf landscape} - end - def png_nav_dot_toc - %{^} - end - def png_nav_dot_previous - %{<} - end - def png_nav_dot_next - %{>} - end - def png_nav_dot_pre - png_nav_dot_previous - end - def png_nav_dot_nxt - png_nav_dot_next - end #% nav_txt - def nav_txt_home - %{ - #{png_site}  - } - end - def nav_txt_home_button - %{ - #{png_home_button}  - } - end def nav_txt_homepage %{  home  @@ -1046,11 +748,6 @@ module SiSU_Viz def nav_txt_toc_link %{   toc  - } - end - def nav_txt_toc_link_verbose - %{ - #{png_toc}  segments' toc  } end def nav_txt_doc_link @@ -1067,37 +764,6 @@ module SiSU_Viz def nav_txt_concordance %{   A-Z  - } - end - def nav_txt_previous - ' -   << Previous   - - Full Text ' - end - def nav_txt_next - %{ -   Next     >>   - } - end - def nav_txt_plaintext - %{ -   txt  - } - end - def nav_txt_odf - %{ -   odt  - } - end - def nav_txt_pdfs - %{ - pdfs   - } - end - def nav_txt_epub - %{ -  epub  } end def nav_txt_pdf_portrait @@ -1111,77 +777,11 @@ module SiSU_Viz } end #% banner - def banner_home - %{
- - #{png_site} - -
- - an -
- ( international | transnational ) -
- commercial law & e-commerce -
- infrastructure monitor
} - end - def banner_home_guide - %{
- - #{png_doc} LM toc - - - #{png_doc} LM 20** - -
} - end def banner_home_button_only %{ #{png_home_button} } end - def banner_home_button #yellow_dark now white - %{ - -
- - #{png_home_button} - - -#{table_close}} - end - def banner_home_and_index_buttons #yellow_dark now white - %{ - - -
- - -
- - #{png_home} - -
-
- - -
- - -  This text's sub-  -
-  Table of Contents  -
-
-
-
-   -#{table_close}} - end - def banner_url_txt_sisu - %{SiSU} - end def banner_band #yellow_dark now white %{
@@ -1191,14 +791,6 @@ module SiSU_Viz #{table_close}} - end - def banner_credit_band - %{ -
- -
- -
} end def banner_instrument_cover_band_scr ' @@ -1211,256 +803,10 @@ module SiSU_Viz #% widget def widget_promo # Array used to build promo from list.yml and promo.yml # ['sisu_icon','sisu','sisu_search_libre','open_society','fsf','ruby'] - end - def widget_browsers -<
- -
-

- - If you have problems viewing pages on this site please update your browser: - -

-#{table_close} - - - - - - - - - -
-

- - -  Epiphany - - ® | - -

-
-

- - -  Galeon - - ® | - -

-
-

- - - I-Explorer - - ® | - -

-
-

- - - Kazehakase - ® |

- -

- - - Konqueror - ® |

-

- - - Mozilla - - - Firefox - - ® | - -

-
-

- - - Netscape - - ® | - -

-
-

- - - Opera - - ® | - -

-
-

- - - Safari - - ® - -

-#{table_close} - - - - - - - - - - -WOK end def widgets_open < -WOK - end - def widget_pdfviewers -< - - - - WOK end def widget_sisu_text @@ -1583,26 +929,6 @@ WOK WOK end #% credits - def credits_itl_cover_band - %{
-

- - for console/text viewing: - -

-
-

- - - elinks -  | - -

-
-

- - - links2 -  | - -

-
-

- - - w3m - - -

-
-

- - for lightweight gui (X) viewing try: - -

-
-

- - - Dillo - -  | - -

-
-

- - -  Epiphany - - ® | - -

-
-

- - -  Galeon -  | - -

-
-

- - - links2 -g - - -

-#{table_close} -
- -
-

- - & for - - pdf - - viewings of this site we recommend stand alone viewers -
- (rather than web browser plugins): -
-

-
-

- - - Acrobat Reader - - ® -  | - -

-
-

- - - Evince - - ® - -

-
-

- -  GhostView® , - - GV® - - & - - GSview® - -  | - -

-
-

- - -  Xpdf - - ® - -

-
-
- -
- -
- - -
- -
- \@ -
- #{txt_home} -
- #{banner_url_txt_sisu} -
-
-#{table_close*4}} - end def credits_sisu_manifest widget_sisu_text end @@ -1623,29 +949,6 @@ WOK } '' end - #% bottom - def bottom_surround - %{
#{table_close} -
- -
-#{table_close} - - #{banner_band} -#{table_close} - -
- - -
- #{table_close} - - #{credits_splash} -#{table_close} - -} - end end class Home < Skin def initialize @@ -1888,7 +1191,7 @@ SQL databases are populated at an object level (roughly headings, paragraphs, ve use of semantic meta-tags in headers permit the addition of semantic information on documents, (the available fields are easily extended)

(vii) -creates organised directory/file structure for (file-system) output, easily mapped with its clearly defined structure, with all text objects numbered, you know in advance where in each document output type, a bit of text will be found (e.g. from an SQL search, you know where to go to find the prepared html output or PDF etc.)... there is more; easy directory management and document associations, the document preparation (sub-)directory may be used to determine output (sub-)directory, the skin used, and the SQL database used,

+creates organised directory/file structure for (file-system) output, easily mapped with its clearly defined structure, with all text objects numbered, you know in advance where in each document output type, a bit of text will be found (e.g. from an SQL search, you know where to go to find the prepared html output or PDF etc.)... there is more; easy directory management and document associations, the document preparation (sub-)directory may be used to determine output (sub-)directory and the SQL database used,

(viii) "Concordance file" wordmap, consisting of all the words in a document and their (text/ object) locations within the text, (and the possibility of adding vocabularies),

@@ -1905,7 +1208,7 @@ version control, documents integrated with time based source control system, def SiSU's minimalist markup makes for meaningful "diffing" of the substantive content of markup-files,

(xi) -easily skinnable, document appearance on a project/site wide, directory wide, or document instance level easily controlled/changed,

+modifiable document appearance on a project/site wide, directory wide, or document instance level easily controlled/changed,

(xii) in many cases a regular expression may be used (once in the document header) to define all or part of a documents structure obviating or reducing the need to provide structural markup within the document,

-- cgit v1.2.3