{"id":2471,"date":"2021-10-07T17:55:52","date_gmt":"2021-10-07T15:55:52","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2471"},"modified":"2022-04-17T16:22:27","modified_gmt":"2022-04-17T14:22:27","slug":"link-from-outside-to-a-part-of-a-file","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2471","title":{"rendered":"link from outside to a part of a file"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">pdf<\/h3>\n\n\n\n<p>It is possible to link a page of a pdf, with the following syntax:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file:\/\/\/your-path-here\/your-pdf-filename-here.pdf#pag=&#91;the-page-number]<\/code><\/pre>\n\n\n\n<p>or, if the file is within your localhost folder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;localhost\/your-path-here\/your-pdf-filename-here.pdf#pag=&#91;the-page-number]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">epub<\/h3>\n\n\n\n<p>It is possible to link to a given location of an epub file, i.g. with calibre viewer, with a code like the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>file:\/\/\/your-path-here\/your-epub-filename.epub?open_at=epubcfi(\/10\/2\/4\/2\/132\/18\/1:65)<\/code><\/pre>\n\n\n\n<p>You can get the string after open_at (in the above case: <code>epubcfi(\/10\/2\/4\/2\/132\/18\/1:65)<\/code> in the calibre viewer, this way:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>right click<\/li><li>-&gt; go to<\/li><li>-&gt; location<\/li><li>-&gt; current location (above in the window) : copy <\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">video file<\/h3>\n\n\n\n<p>with VLC you can use this code<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vlc file:\/\/\/my-path\/my-video.mp4 --start-time=90<\/code><\/pre>\n\n\n\n<p>where  &#8217;90&#8217;  are the seconds (after the start of video).<\/p>\n\n\n\n<p>I didn&#8217;t manage, so far, to open a video with such a code <strong>from a browser<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">audio file<\/h3>\n\n\n\n<p>You ca do it in several ways. With play (sox) in Linux you can use a code setting not only the start time, but the end one as well:  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>play '\/your-path\/your-file.ogg' trim 5:18 =7:01<\/code><\/pre>\n\n\n\n<p>where 5:18 is the start time, and 7:01 the end one (<strong>=7.01<\/strong> and <strong>not = 7:01<\/strong>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pdf It is possible to link a page of a pdf, with the following syntax: or, if the file is within your localhost folder epub It is possible to link to a given location of an epub file, i.g. with calibre viewer, with a code like the following You can get the string after open_at &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=2471\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;link from outside to a part of a file&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[570,642,565,702],"tags":[703],"class_list":["post-2471","post","type-post","status-publish","format-standard","hentry","category-browsers","category-epub","category-office","category-pdf","tag-link"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2471"}],"version-history":[{"count":5,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2471\/revisions"}],"predecessor-version":[{"id":2591,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2471\/revisions\/2591"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}