getAllStatuses(); $renderer = get_active_status_renderer(); echo ''; } function topic_icons_css() { echo "\n"; } function topic_icons_label( $label ) { global $topic; if (bb_is_front() || bb_is_forum() || bb_is_view() || bb_is_tag()) { $icon_set_name = topic_icons_get_active_icon_set(); $icon_set_url = ICON_SET_URL_BASE . $icon_set_name; $status = get_active_status_interpreter()->getStatus(bb_get_location(), $topic); $renderer = get_active_status_renderer(); $image = $renderer->renderStatus($status); $tooltip = $renderer->renderStatusTooltip($status); $exists = file_exists(dirname(__FILE__).'/icon-sets/'.$icon_set_name.'/'.$image); if (!$exists) { return sprintf(__('
%s
%s'), get_topic_link($topic->topic_id), ICON_SET_URL_BASE.'/empty.png', ICON_WIDTH, ICON_HEIGHT, $tooltip, $label); } else if (strlen($tooltip) > 0) { return sprintf(__('
%s%s
%s'), get_topic_link($topic->topic_id), $icon_set_url.'/'.$image, ICON_WIDTH, ICON_HEIGHT, $tooltip, $tooltip, $label); } else { return sprintf(__('
%s
%s'), get_topic_link($topic->topic_id), $icon_set_url.'/'.$image, ICON_WIDTH, ICON_HEIGHT, $tooltip, $label); } } return $label; } function topic_icons_init( ) { remove_filter('bb_topic_labels', 'bb_closed_label', 10); remove_filter('bb_topic_labels', 'bb_sticky_label', 20); add_filter('bb_topic_labels', 'topic_icons_label', 11); add_action('bb_head', 'topic_icons_css'); add_action('bb_admin_menu_generator', 'topic_icons_admin_page_add'); add_action('bb_admin-header.php', 'topic_icons_admin_page_process'); topic_icons_register_status_interpreter('default', new DefaultStatusInterpreter(BUSY_THRESHOLD)); topic_icons_register_status_renderer('default', new DefaultStatusRenderer()); } topic_icons_init(); ?> Digital Humanities Questions & Answers » Topic: Generating epub files that read right to left? http://digitalhumanities.org/answers/topic/generating-epub-files-that-read-right-to-left Digital Humanities Questions & Answers » Topic: Generating epub files that read right to left? en-US Sat, 23 Mar 2019 06:20:03 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://digitalhumanities.org/answers/search.php dot.porter on "Generating epub files that read right to left?" http://digitalhumanities.org/answers/topic/generating-epub-files-that-read-right-to-left#post-2275 Tue, 27 Jan 2015 17:52:35 +0000 dot.porter 2275@http://digitalhumanities.org/answers/ <p><em>Replying to @dot.porter's <a href="http://digitalhumanities.org/answers/topic/generating-epub-files-that-read-right-to-left#post-2274">post</a>:</em></p> <p>Answering my own question!</p> <p>After generating the epub, I can add page-progression-direction="rtl" to the &lt;spine&gt; tag in the content.opf file. Totally do-able. </p> dot.porter on "Generating epub files that read right to left?" http://digitalhumanities.org/answers/topic/generating-epub-files-that-read-right-to-left#post-2274 Tue, 27 Jan 2015 14:45:52 +0000 dot.porter 2274@http://digitalhumanities.org/answers/ <p>I want to create some ebooks, in the epub format, but some of the works are in languages that read right-to-left (Arabic, Hebrew, and others). I'm currently using Calibre to generate epubs from html, which works great for left-to-right, but I can't figure a way to make it generate epubs that read right-to-left (changing the language in the metadata doesn't do anything). </p> <p>Is there some other software I should use, or is there some way to do this in Calibre that I just can't figure out? </p>