/sys/lib/plumb/basic: add commas to some rules for file names that will frequently contain commas
This commit is contained in:
parent
66f86d03a5
commit
9e021d9230
|
@ -15,8 +15,8 @@ plumb client window $browser
|
||||||
|
|
||||||
# rtf files go to wdoc2txt
|
# rtf files go to wdoc2txt
|
||||||
type is text
|
type is text
|
||||||
data matches '[a-zA-Z¡-0-9_\-./]+'
|
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
||||||
data matches '([a-zA-Z¡-0-9_\-./]+)\.rtf'
|
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.rtf'
|
||||||
arg isfile $0
|
arg isfile $0
|
||||||
plumb to msword
|
plumb to msword
|
||||||
plumb start wdoc2txt $file
|
plumb start wdoc2txt $file
|
||||||
|
@ -35,23 +35,23 @@ plumb start window rc -c '''echo % mail '''$0'; mail '$0
|
||||||
|
|
||||||
# audio
|
# audio
|
||||||
type is text
|
type is text
|
||||||
data matches '[a-zA-Z¡-0-9_\-./]+'
|
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
||||||
data matches '([a-zA-Z¡-0-9_\-./]+)\.(mp3|ogg|flac|m3u|pls)'
|
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(mp3|ogg|flac|m3u|pls)'
|
||||||
arg isfile $0
|
arg isfile $0
|
||||||
plumb to audio
|
plumb to audio
|
||||||
plumb start window play $0
|
plumb start window play $0
|
||||||
|
|
||||||
# image files go to page
|
# image files go to page
|
||||||
type is text
|
type is text
|
||||||
data matches '[a-zA-Z¡-0-9_\-./]+'
|
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
||||||
data matches '([a-zA-Z¡-0-9_\-./]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|PPM|bit|BIT|png|PNG|pgm|PGM|bmp|BMP|yuv|YUV)'
|
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|PPM|bit|BIT|png|PNG|pgm|PGM|bmp|BMP|yuv|YUV)'
|
||||||
arg isfile $0
|
arg isfile $0
|
||||||
plumb to image
|
plumb to image
|
||||||
plumb client page -wi
|
plumb client page -wi
|
||||||
|
|
||||||
# page bookmarks
|
# page bookmarks
|
||||||
type is text
|
type is text
|
||||||
data matches '(([a-zA-Z¡-0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI|doc|DOC|epub|EPUB|cb[tz]|CB[TZ]))!(.+)'
|
data matches '(([a-zA-Z¡-0-9_\-.,/]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI|doc|DOC|epub|EPUB|cb[tz]|CB[TZ]))!(.+)'
|
||||||
arg isfile $1
|
arg isfile $1
|
||||||
data set $file
|
data set $file
|
||||||
attr add addr=$4
|
attr add addr=$4
|
||||||
|
@ -61,8 +61,8 @@ plumb start page -wij $0 $file
|
||||||
# postscript/pdf/dvi/doc go to page but not over the a plumb port
|
# postscript/pdf/dvi/doc go to page but not over the a plumb port
|
||||||
# the port is here for reference but is unused
|
# the port is here for reference but is unused
|
||||||
type is text
|
type is text
|
||||||
data matches '[a-zA-Z¡-0-9_\-./]+'
|
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
||||||
data matches '([a-zA-Z¡-0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI|doc|DOC|epub|EPUB|cb[tz]|CB[TZ])'
|
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI|doc|DOC|epub|EPUB|cb[tz]|CB[TZ])'
|
||||||
arg isfile $0
|
arg isfile $0
|
||||||
plumb to postscript
|
plumb to postscript
|
||||||
plumb start page -w $file
|
plumb start page -w $file
|
||||||
|
|
Loading…
Reference in a new issue