-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images don't show #17
Comments
yeah it's broken, not sure what I was doing. I'll see about getting them actually working |
Hi ! Do you plan to fix the issue soon ? We kind of need to use the program with images shown. Thanks ! |
@synapse25 The image loading hasn't been implemented at all, it's not a bug, it hasn't been implemented at all beyond just printing the file path. |
Is this something you are willing to fix soon ? It's really critical. |
Do you mean images like with ASCII art, or full-blown images? |
if i get image stuff added it's unlikely to be very useful - I think I was planning to use https://github.com/rupa/ansiimg or something like that |
The documentation for epub.py -h says the idea was to use an external web browser. |
@rupa How is ansiimg going to display math symbols ? If that works, how soon you are willing to implement it ? |
Part of the issue is the regex being used to list the images. In my test document, the xhtml for images are: |
1] Here's a patch for the regex's that works for me (~line 308) # CASE: Quoted - Legacy code - not sure if this is ever encountered mch = re.search('\[img="([^"]+)" "([^"]*)"\]', line) if mch: images.append(mch.group(1)) mch = "" # CASE: Unquoted mch = re.search('\[img=([^ ]+) +"([^"]*)"\]', line) if mch: images.append(mch.group(1)) mch = "" 2] Is there a simple way to display (and store) the images initially using absolute pathnames within the zipped epub archive instead of relative? At this point the call to |
@Boruch-Baum Have you pushed it or we have to do the replacement ? |
@synapse25 No, because it doesn't completely fix the issue. What remains to be done:
|
@synapse25 |
@Boruch-Baum I think the user should somehow click on an image and get it displayed, then go back to continue the text. |
@synapse25 Without a mouse, eg. from a console session, the way would possibly be to convert all image references to links, and have tab-advance to the location . . . |
I've tried many things and I have everything required installed but images do not show. Instead, their path is printed.
The text was updated successfully, but these errors were encountered: