You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The (.*) is too greedy. It does not care about other attributes in the html div.
So the result of the first group is: texture-resolution.frag" data-imgs="nicephore.jpg
Fix
We could try make a stronger regex if we know how the files are named. They just contain -, A-Za-z, . and end with a frag so why don't we just try to match them and leave everything else away?
data=\"([\w\-\.]+frag)\"
Now we can replace the line in the script with a simple regex search and get the filename in the first group value:
Finally it works!...ehm...the generation of the frag's works. I have a .tex file now, but the pdf generation still does not work. If I find the solution I will open another issue.
As a help for other Mac users want to build it themselfs
If you try to make the glslViewer on MacOSX and it does not find the glfw3 library, you have to export the path to it after install (maybe the path is different on your system): export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
I tried to create the pdf but make does always fail with this error:
Error
Research
It looks like the script takes a bit too much from the html. In this case it would be a parsing error, so i checked your regex:
This regex should filter out the .frag in this line:
Problem
Now the problem is:
/
at the end of the query.(.*)
is too greedy. It does not care about other attributes in the html div.So the result of the first group is:
texture-resolution.frag" data-imgs="nicephore.jpg
Fix
We could try make a stronger regex if we know how the files are named. They just contain
-
,A-Za-z
,.
and end with afrag
so why don't we just try to match them and leave everything else away?Now we can replace the line in the script with a simple regex search and get the filename in the first group value:
Finally it works!...ehm...the generation of the frag's works. I have a .tex file now, but the pdf generation still does not work. If I find the solution I will open another issue.
As a help for other Mac users want to build it themselfs
If you try to make the glslViewer on MacOSX and it does not find the glfw3 library, you have to export the path to it after install (maybe the path is different on your system):
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
And you have to install xelatex!The text was updated successfully, but these errors were encountered: