[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2014-10-26 Thread Gunnar Hjalmarsson
No longer applicable. Closing.

** Changed in: ubuntu-docs (Ubuntu)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/570111

Title:
  Some urls are not fixed by script fix-urls.sh during build.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/570111/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2013-06-12 Thread John Kim
** Tags added: script

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/570111

Title:
  Some urls are not fixed by script fix-urls.sh during build.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/570111/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-09-15 Thread Leo Iannacone
Il giorno dom, 15/08/2010 alle 13.35 +, Matthew East ha scritto:
 Leo - your suggestion to improve and simplify the script is still a
 valid bug so I'll leave this bug open and reduce the importance to
 Wishlist. It's not clear to me from your previous comments whether you
 have a working alternative - could you clarify?


Hi Matt,
sorry for delay.

Try this script (see attached), should work fine.

Note that urls are old (script is based on lucid doc branch) and need to
be upgrade to work in maverick one.


-- 
Ubuntu Member   - http://launchpad.net/~l3on
Home Page   - http://leoiannacone.com
GPG Key Id  - 0xD59257A9

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-09-15 Thread Leo Iannacone
** Attachment added: fix-urls.py
   https://bugs.launchpad.net/bugs/570111/+attachment/1589891/+files/fix-urls.py

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-09-02 Thread Leo Iannacone
Hi Matt,
sorry for delay.

Try this script (see attached). Pay attention that urls are based on
lucid doc branch, you need to upgrade them in order to make script work
fine in maverick doc.


** Attachment added: fix-urls.py
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/570111/+attachment/1537008/+files/fix-urls.py

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-08-15 Thread Matthew East
I think the fix-urls.sh script has been updated so that all urls are
currently fixed during the build (except those for which we don't have a
good alternative link).

Leo - your suggestion to improve and simplify the script is still a
valid bug so I'll leave this bug open and reduce the importance to
Wishlist. It's not clear to me from your previous comments whether you
have a working alternative - could you clarify?

** Changed in: ubuntu-docs (Ubuntu)
   Importance: High = Wishlist

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-04-27 Thread Matthew East
Leo - we're not very good at making scripts, so feel free to propose a
different solution which could work better.

** Changed in: ubuntu-docs (Ubuntu)
   Status: New = Confirmed

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-04-27 Thread Leo Iannacone

In this morning I saw in deep the script and I realize that is impossibile make 
any dynamic functions to fix urls.

For example, take a look at this sed line:

sed -i build/$y/$lang/*.html -e s#ghelp:musicvideophotos\#photos-
printing#\.\./\.\./musicvideophotos/$lang/photos.html\#photos-
printing#g

There is no apparent link between ghelp:musicvideophotos#photos-
printing ghelp url and musicvideophotos/$lang/photos.html#photos-
printing html url.

Or am I missing it?


Anyway, we can make a py script that at least replace the dreadful sed escape 
characters with readable strings.
A dictionary, for example, could be definied:
url_to_fix = {
  ghelp:musicvideophotos#photos-printing: 
musicvideophotos/%s/photos.html#photos-printing,
}

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-04-27 Thread Leo Iannacone
This is the script I wrote.

It's very similar at old fix-urls.sh.

The only benefits are: 
 * present urls are more clear (withoud escape characters)
 * seems to be faster during excecution

** Attachment added: Fixing urls in python
   http://launchpadlibrarian.net/45710946/fix-urls.py

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-04-27 Thread Leo Iannacone
I'm continuing to find broken urls:


Page: newtoubuntu/it/applications.html
Broken icons.


And a lot of '.html-' in href that are clearly broken:


desktop-effects/C/compiz-default-plugins.html:pThe Viewport 
Switcher is used to switch a class=ulink 
href=http://library.gnome.org/users/user-guide/stable/overview.html-workspaces;
 target=_topworkspaces/a
hardware/C/input-devices.html:a class=ulink 
href=http://library.gnome.org/users/user-guide/stable/prefs.html-mouse; 
target=_topMouse Preferences/a
hardware/C/input-devices.html:a class=ulink 
href=http://library.gnome.org/users/user-guide/stable/prefs.html-keyboard; 
target=_topKeyboard Preferences/a
keeping-safe/C/backup-files.html:  pBy default, restored 
files and directories are owned by root. This is because Simple Backup Suite 
runs with root priveleges. You need to a class=ulink 
href=http://library.gnome.org/users/user-guide/stable/nautilus.html-permissions;
 target=_topchange these file or folder permissions/a using span 
class=applicationstrongFile Browser/strong/span.
musicvideophotos/C/music-listen.html:pSee the a 
class=ulink 
href=http://library.gnome.org/users/user-guide/stable/nautilus.html-preferences;
 target=_top
newtoubuntu/C/music-video.html:  pTo add support for all 
frequently used music and video files, a class=ulink 
href=apt:ubuntu-restricted-extras target=_topinstall the 
ubuntu-restricted-extras package/a. This will also add support for a 
class=ulink href=../../musicvideophotos/C/video.html-playback-flash 
target=_topwebsites which use Flash video/a./p
serverguide/C/mysql.html: The documentation is in HTML format, to 
view them enter span 
class=commandstrongfile:///usr/share/doc/mysql-doc-5.0/refman-5.0-en.html-chapter/index.html/strong/span

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-04-27 Thread Leo Iannacone
Ok, I understood why there are a lot of '.html-' href.

This occurs because if you have these strings to translate:
'aaa':  'www'
'aaa#bbb': 'www#zzz'


If you execute the replacing of the first one, you'll have every aaa translated:
href=www
href=www#bbb

So when you looking for second one you'll never match.

The solution at this problem is simple, in fix-urls.sh you could replace all 
urls in this way:
OLD ONES:
s#url1#url2#g

NEW ONES:
s#url1#urls#g


This make sure that when you replace some urls like:
href=aaa
You'll translate just it, and an href=aaa#bbb will remains the same.


There is a more simple solution in fix-urls.py, just remplace this line:
body = body.replace(url, urls[url] % {'lang' : language})
in this one:
body = body.replace('\%s\' % url , '\%s\' % (urls[url] % 
{'lang' : language}))


So, after a rebuild I saw several untraslated urls:

add-applications/C/installing.html:  pFor more information about 
using the span class=applicationstrongUbuntu Software 
Center/strong/span, consult the a class=ulink 
href=ghelp:software-center target=_topUbuntu Software Center 
Manual/a./p
add-applications/C/removing.html:  pFor more information about 
using the span class=applicationstrongUbuntu Software 
Center/strong/span, consult the a class=ulink 
href=ghelp:software-center target=_topUbuntu Software Center 
Manual/a./p
desktop-effects/C/compiz-default-plugins.html:pThe Viewport 
Switcher is used to switch a class=ulink 
href=ghelp:user-guide#overview-workspaces target=_topworkspaces/a
hardware/C/disks.html:a class=ulink 
href=ghelp:add-applications#removing target=_top
internet/C/email.html:  pThe span 
class=applicationstrongEvolution/strong/span groupware suite is the 
default email client, and can handle all of your a class=ulink 
href=http://library.gnome.org/users/evolution/stable/usage-mail.html; 
target=_topemail/a, a class=ulink href=ghelp:evolution#usage-contact 
target=_topcontact lists/a, a class=ulink 
href=ghelp:evolution#usage-calendar-todo target=_toptasks/a and a 
class=ulink 
href=http://library.gnome.org/users/evolution/stable/usage-calendar.html; 
target=_topcalendar/a needs. It also integrates with the a class=ulink 
href=http://library.gnome.org/users/clock/stable/; target=_toppanel 
clock/a, giving you one-click access to your task list./p
internet/C/modem-connect.html:  If you have no working Internet 
connection, then you will need to obtain this package and install it, see a 
class=ulink href=ghelp:add-applications#installing-deb 
target=_topDownloading and installing a .deb package/a for more 
information./p
keeping-safe/C/backup-files.html:  pBy default, restored 
files and directories are owned by root. This is because Simple Backup Suite 
runs with root priveleges. You need to a class=ulink 
href=ghelp:user-guide#nautilus-permissions target=_topchange these file or 
folder permissions/a using span class=applicationstrongFile 
Browser/strong/span.
musicvideophotos/C/photos-sharing.html:photo sharing service/a or 
a a class=ulink href=ghelp:f-spot#website-gallery-folder target=_topweb 
gallery/a.
musicvideophotos/C/music-listen.html:pSee the a 
class=ulink href=ghelp:user-guide#nautilus-preferences target=_top
musicvideophotos/C/video-playback.html:a class=ulink 
href=ghelp:add-applications#restricted-software target=_topRestricted 
musicvideophotos/C/video-playback.html:some a class=ulink 
href=ghelp:add-applications#restricted-software target=_toplegal 
musicvideophotos/C/video-dvd.html:Read about a class=ulink 
href=ghelp:add-applications#restricted-software target=_top
newtoubuntu/C/connecting.html:  pFor further reading or 
troubleshooting see a class=ulink href=ghelp:internet 
target=_topInternet and Networks/a./p
newtoubuntu/C/music-video.html:  pMusic and video files require 
special software to play them, called span 
class=emphasisemcodecs/em/span. Some codecs (for example those 
required to play MP3s) are not included by default in Ubuntu because they are 
a class=ulink href=ghelp:add-applications#restricted-software 
target=_topproprietary/a. You will be prompted to add support for the 
necessary codec if you try to play a music or video file which is not 
supported./p
newtoubuntu/C/music-video.html:  pTo add support for all 
frequently used music and video files, a class=ulink 
href=apt:ubuntu-restricted-extras target=_topinstall the 
ubuntu-restricted-extras package/a. This will also add support for a 
class=ulink href=ghelp:musicvideophotos#video-playback-flash 
target=_topwebsites which use Flash video/a./p
newtoubuntu/C/music-video.html:  pFor more instructions 
about playing music and videos, see a class=ulink 
href=ghelp:musicvideophotos target=_topMusic, Video and Photos/a./p
newtoubuntu/C/add-applications.html:

[Bug 570111] Re: Some urls are not fixed by script fix-urls.sh during build.

2010-04-26 Thread Connor Imes
For now we will need to fix the URLs, perhaps in the future we will find
a better way to maintain this as you suggested.  If you have anything
solid you can present as an alternative to our current method, we would
certainly be interested in seeing it.  Thank you for your report.

** Changed in: ubuntu-docs (Ubuntu)
   Importance: Undecided = High

-- 
Some urls are not fixed by script fix-urls.sh during build.
https://bugs.launchpad.net/bugs/570111
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs