{"id":655,"date":"2009-01-07T20:41:15","date_gmt":"2009-01-07T20:41:15","guid":{"rendered":"http:\/\/software.sil.org\/wesay\/?p=655"},"modified":"2017-04-24T21:57:41","modified_gmt":"2017-04-24T21:57:41","slug":"single-click-printing","status":"publish","type":"post","link":"https:\/\/software.sil.org\/wesay\/single-click-printing\/","title":{"rendered":"Single-Click Printing"},"content":{"rendered":"<p>In my last post, I mentioned that three levels of printing WeSay dictionaries are taking shape:<\/p>\n<ol>\n<li>Useful for everyday WeSay users, with no training.<\/li>\n<li>Good enough for final publication of many projects, with a little training or computer savvy.<\/li>\n<li>Powerful enough for any project, perhaps needing a specialist.<\/li>\n<\/ol>\n<p>In that post, we covered #2, at least for Windows users. Now I\u2019m pleased to announce a big step towards #1: <a href=\"\/wp-content\/uploads\/sites\/35\/2017\/04\/2009-01-06-14-20-20-603.png\" rel=\"lightbox\"><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/35\/2017\/04\/2009-01-06-14-20-20-603.png\" alt=\"Make Pdf Dictionary button\" title=\"Make Pdf Dictionary button\" \/><br \/>\n<\/a><\/p>\n<p>Click this, and a few moments later your PDF reader (e.g. Acrobat) opens with a dictionary: <a href=\"\/wp-content\/uploads\/sites\/35\/2017\/04\/image-dictionary.png\" rel=\"lightbox\"><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/35\/2017\/04\/image-dictionary.png\" alt=\"Sample PDF dictionary page\" title=\"Sample PDF dictionary page\" \/><br \/>\n<\/a><\/p>\n<p>Our aims for this feature are limited:<\/p>\n<p>1) Provide a Linux (as well as Windows) way to get simple printouts. (<a href=\"..\/..\/lexiquepro\" title=\"\" class=\"external\">Lexique Pro<\/a> is Windows-only).<\/p>\n<p>2) Provide a very simple way to get printout when no computer-savvy advisor is available to run a more extensive set of applications (like Lexique Pro + Microsoft Word).<\/p>\n<p>Currently, the fields that this outputs are limited to:<\/p>\n<ul>\n<li>Headword (from Lexeme Form and Citation Form).  Multiple writing-system headword are supported.<\/li>\n<li>Definition<\/li>\n<li>Part of Speech<\/li>\n<li>Top level senses (not sub senses)<\/li>\n<li>Example sentences, and translations of them<\/li>\n<li>Illustrations, auto-captioned to the headword of the entry<\/li>\n<li>Cross references<\/li>\n<\/ul>\n<p>We can easily add to the capabilities here, at you request. But we may be resistant to any enhancements which involve wizards, dialogs, etc.  For that kind of control, you really need to use Lexique Pro, FLEx, or MDF.  In other words, the request \u201cI need to get borrowed words\u201d would be implemented quickly, whereas \u201cI want control over the placement of the illustrations\u201d will not.<\/p>\n<h2>Future Work<\/h2>\n<p>Depending on feedback from you, gentle reader, we could do more interesting things here. These include:<\/p>\n<ul>\n<li>Automatically ordering pages for booklet printing<\/li>\n<li>A title page<\/li>\n<li>A section of words categorized by semantic-domain<\/li>\n<li>A reversal section<\/li>\n<\/ul>\n<h2>Technical details<\/h2>\n<p>As with <a href=\"..\/..\/lexiquepro\" title=\"\" class=\"external\">Lexique Pro<\/a> export, WeSay begins by producing a PLIFT file, which is a simplified copy of your <a href=\"http:\/\/code.google.com\/p\/lift-standard\" title=\"\" class=\"external\" target=\"_blank\" rel=\"noopener\">LIFT<\/a> dictionary file. It then converts this to HTML (like web pages use) and produces style sheets (<em>industry standard <a href=\"http:\/\/en.wikipedia.org\/wiki\/Cascading_Style_Sheets\" title=\"\" class=\"external\" target=\"_blank\" rel=\"noopener\">CSS3<\/a><\/em>). Finally, it uses a terrific page-layout engine named <a href=\"http:\/\/www.princexml.com\/\" title=\"\" class=\"external\" target=\"_blank\" rel=\"noopener\">PrinceXml<\/a> to produce the PDF. The stylesheets are:<\/p>\n<ul>\n<li><em>autoLayout.css<\/em><\/li>\n<li><em>autoFonts.css<\/em><\/li>\n<li><em>customLayout.css<\/em><\/li>\n<li><em>customFonts.css<\/em><\/li>\n<\/ul>\n<p>If you are so inclined, you can edit the two \u201ccustom\u201d ones. This has the effect of overriding the styles in the \u201cauto\u201d ones. In this way, the technical user has full control. You can also setup the dictionary the way you want using <a href=\"..\/..\/fieldworks\" title=\"\" class=\"external\">FieldWorks Language Explorer\u2019s<\/a> dictionary export function, which gives you extensive control over many aspects of the layout. WeSay\u2019s HTML uses the same style names as FLEx, so you can grab the CSS that FLEx creates and use that for your <em>customLayout.css<\/em> when using WeSay.  If you do any of this kind of thing, please let us know. We really need to know what people are using, and what they aren\u2019t.<\/p>\n<p>Have you read this far? Leave a comment. I\u2019m not clear if folks in the language documentation community actually read blogs.<\/p>\n<div class=\"top border\"><a href=\"#top\">top<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In my last post, I mentioned that three levels of printing WeSay dictionaries are taking shape: Useful for everyday WeSay users, with no training. Good enough for final publication of many projects, with a little training or computer savvy. Powerful enough for any project, perhaps needing a specialist. In that post, we covered #2, at [&hellip;]<\/p>\n","protected":false},"author":26,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/comments?post=655"}],"version-history":[{"count":5,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts\/655\/revisions"}],"predecessor-version":[{"id":660,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/posts\/655\/revisions\/660"}],"wp:attachment":[{"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/media?parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/categories?post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.sil.org\/wesay\/wp-json\/wp\/v2\/tags?post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}