wepub

Check-in [e8ce7e0f60]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If we ended up with an HTML anchor, shed it when thinking about chapter/part numbers.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | master | trunk
Files: files | file ages | folders
SHA3-256:e8ce7e0f609374425beec4ec79cc508dfb768b7c78b92df168f143d821af604c
User & Date: vandys 2019-12-20 21:13:06
Context
2019-12-20
21:13
If we ended up with an HTML anchor, shed it when thinking about chapter/part numbers. Leaf check-in: e8ce7e0f60 user: vandys tags: master, trunk
2019-04-09
00:18
Center tap to get an actual modal, font change is in there now, along with explicit position sync and percentage document jump. check-in: e2ccaa73af user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to get.py.

71
72
73
74
75
76
77

78
79
80
81
82
83
84
85
            # Make URL a local ref, so it can straddle HTTP/HTTPS
            #  and internal versus extenal port numbering.
            url = '/' + ('/'.join(f.split('/')[3:]))

            # Extract title of book
            parts = f.split('/')
            title = unquote_plus(parts[-2])

            secnum = int(parts[-1])

            # When they read it
            tm = time.localtime(ftm)
            tms = time.strftime("%m/%d %H:%M", tm)

            # Add table entry
            res += ' <tr>\n'







>
|







71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
            # Make URL a local ref, so it can straddle HTTP/HTTPS
            #  and internal versus extenal port numbering.
            url = '/' + ('/'.join(f.split('/')[3:]))

            # Extract title of book
            parts = f.split('/')
            title = unquote_plus(parts[-2])
	    prt = parts[-1].split('#')[0]
            secnum = int(prt)

            # When they read it
            tm = time.localtime(ftm)
            tms = time.strftime("%m/%d %H:%M", tm)

            # Add table entry
            res += ' <tr>\n'