From: Michael M. <mm...@us...> - 2005-04-08 00:16:30
|
Update of /cvsroot/bibdesk/bibdesk/BibDesk Help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16490 Modified Files: Makefile Added Files: applehelp.init bibdesk.texi version.texi Log Message: Adding new texinfo source and config files. bibdesk.texi contains the help source. version.texi has just a single version number, and is @included in bibdesk.texi. applehelp.init contains overridden texi2html formatting commands for apple help. the Makefile just invokes texi2html with some apparently crucial filename arguments. --- NEW FILE: bibdesk.texi --- \input texinfo @c -*-texinfo-*- @c This is the manual for Bibdesk. @setfilename bibdesk.info @c get versions of the manual and program from a separate file @include version.texi @c define an index for preference setting entries @defindex pref @settitle BibDesk Help @documentdescription BibDesk Help @end documentdescription @setchapternewpage odd @footnotestyle separate @ifset shorttitlepage-enabled @shorttitlepage BibDesk v@value{VERSION} [...1086 lines suppressed...] See the discussion in <a href="prefs.html#citekey">Preferences</a> for details on setting the cite key format. @bye --nothing past bye gets processed... @multitable @columnfractions .12 .88 @item Portions of Bibdesk @item @tab Copyright @copyright{} 2001 - 2005 Michael O. McCracken@* @item @tab Copyright @copyright{} 2002 - 2005 Adam Maxwell@* @item @tab Copyright @copyright{} 2002 - 2005 Christiaan Hofman@* @item @tab Copyright @copyright{} many others.@* @item @tab @item Portions of this manual @item @tab Copyright @copyright{} 2001 - 2005 Michael O. McCracken (manual)@* @item @tab Copyright @copyright{} 2002 - 2005 Adam Maxwell@* @item @tab Copyright @copyright{} 2002 - 2005 Christiaan Hofman@* @item @tab Copyright @copyright{} many others.@* @end multitable Index: Makefile =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/BibDesk Help/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 5 Apr 2005 04:55:32 -0000 1.1 --- Makefile 8 Apr 2005 00:16:10 -0000 1.2 *************** *** 1,18 **** ! HTMLFILES = $(subst .txt,.html, $(wildcard *.txt)) ! ! # comment out the next 2 lines to use within xcode: ! #UNLOCALIZED_RESOURCES_FOLDER_PATH = ! #BUILD_ROOT = . ! DEST = $(BUILD_ROOT)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/BibDesk\ Help ! all: html ! html: ${HTMLFILES} appleHelp.css ${DEST} ${DEST}/gfx/ ! cp -f appleHelp.css ${DEST}/ ;\ ! cp -f gfx/*.* ${DEST}/gfx/ ! %.html: %.txt appleHelp.css ! ./Markdown.pl $< > ${DEST}/$@ --- 1,23 ---- + texi2html = /Users/mike/bin/texi2html + #makeinfo + INPUT = bibdesk.texi ! all: applehelp html pdf ! # use the longer one for xcode. ! # NOTE:: must be done after the copy resources build phase. ! #DEST = . ! DEST = ${BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/English.lproj/BibDesk\ Help ! html: ! ${texi2html} ${INPUT} --prefix=bibdesk-manual --split=chapter ! applehelp: ! ${texi2html} ${INPUT} --init-file=applehelp.init --prefix="BibDesk Help" --output=${DEST} --split=node ;\ ! cp -r gfx ${DEST}/; ! perl -pi -e 's#<!--AppleMeta-->#<meta name=\"AppleTitle\" content=\"BibDesk Help\"><meta name=\"AppleIcon\" content=\"BibDesk%20Help/gfx/bibDeskIcon.png\"><meta name=\"robots\" content=\"anchors\">#' ${DEST}/BibDesk\ Help.html ! #section#chapter ! pdf: ! echo "PDF target does nothing right now." \ No newline at end of file --- NEW FILE: applehelp.init --- # -*-perl-*- # HTML 3.2 - ouch! $DOCTYPE = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN" "http://www.w3.org/TR/html32/loose.dtd">'; $FRAMESET_DOCTYPE = $DOCTYPE; $USE_ISO = 0; $things_map{'oe'} = 'œ'; $things_map{'OE'} = 'Œ'; $things_map{'dots'} = '<small>...</small>'; $things_map{'enddots'} = '<small>....</small>'; $things_map{'euro'} = 'Euro'; $style_map{'sansserif'} = {}; # " is not in html 3.2 sub t2h_html32_protect_text($) { my $text = shift; $text =~ s/&/&/g; $text =~ s/</</g; $text =~ s/>/>/g; #$text =~ s/\"/"/g; return $text; } # a preformatted section sub t2h_html32_preformatted($$$) { my $text = shift; my $pre_style = shift; my $class = shift; return '' if ($text eq ''); return "<pre>$text</pre>"; } # a simple menu entry ref in case we aren't in a standard menu context sub t2h_html32_foot_section($) { my $lines = shift; unshift (@$lines, "<hr>\n", "<h3>Footnotes</h3>\n"); return $lines; } # a whole menu sub t2h_html32_menu($) { my $text = shift; if ($text =~ /\S/) { return "<table border=\"0\" cellspacing=\"0\">\n" . $text . "</table>\n"; } } #$summary_letter = \&t2h_html32_summary_letter; $protect_text = \&t2h_html32_protect_text; #$heading = \&t2h_html32_heading; $preformatted = \&t2h_html32_preformatted; $raw = \&t2h_html32_raw; $menu = \&t2h_html32_menu; $foot_section = \&t2h_html32_foot_section; #$cartouche = \&t2h_html32_cartouche; #$listoffloats = \&t2h_html32_listoffloats; #$float = \&t2h_html32_float; # Embedded stylesheet: $CSS_LINES = <<'EOT'; <style type="text/css"> p,ul,ol,td { font-family: Lucida Grande,Helvetica,Geneva; font-size: 1em; } h1, h2, h3, h4, h5 { font-family: Lucida Grande,Helvetica,Geneva; color: #3333cc; } code,tt,pre { font-family: Monaco, Courier, Mono, sans-serif; font-size: 0.8em; }</style> EOT #@CHAPTER_BUTTONS = @MISC_BUTTONS; # horizontal rules $SMALL_RULE = ''; $DEFAULT_RULE = ''; $MIDDLE_RULE = ''; $BIG_RULE = ''; $print_page_foot = \&appleHelp_print_page_foot; $EXTRA_HEAD= "<!--AppleMeta-->"; $DO_CONTENTS = 1; $SECTION_NAVIGATION = 0; $simple_map{'*'} = '<br/>'; $image = \&appleHelp_image; sub appleHelp_image{ my $file = shift; my $base = shift; my $preformatted = shift; my $file_name = shift; return "[ $base ]" if ($preformatted); # hack - make relative image refs point to their final destination. $file =~ s#\A.*/\./##; return "<img src=\"$file\" alt=\"$base\">"; } $index_entry_label = \&appleHelp_index_entry_label; sub appleHelp_index_entry_label{ $id = shift; $was_pre = shift; $lin = shift; $anchor_str = "<a name=\"$id\"></a>"; $label_str = "<META name=\"keywords\" content=\"$lin\">"; $anchor_str .= $label_str; $anchor_str .= "\n" if $was_pre; print "FOUND" if $was_pre; return $anchor_str; } $print_page_foot = \&appleHelp_print_page_foot; sub appleHelp_print_page_foot{ $fh = shift; print $fh <<EOT; <p> $PRE_BODY_CLOSE </p> </body> </html> EOT } $print_head_navigation = \&appleHelp_print_no_navigation; sub appleHelp_print_no_navigation{ my $fh = shift; my $buttons = shift; my $vertical = shift; } --- NEW FILE: version.texi --- @set VERSION 1.0 |