Changeset 20797
- Timestamp:
- 10/05/08 16:33:05 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/oldtype/trunk/tool/tdiary2oldtype/convertToOT.scm
r20760 r20797 14 14 (string-append y "_" m "_" d))) 15 15 16 17 ;; 18 ;; "<%=a 'link|str' %> => [[link|str]] 19 ;; "<%=isbn_image 'id' %> => ##(amazon id) 20 ;; 21 (define (convert-command str) 22 (let* ((str 23 (regexp-replace-all #/<%=[ ]?a[ ]+'([^|]+)[|]([^']+)'[ ]+%>/ #?=str 24 (lambda (m) 25 (string-append "[[" 26 #?=(rxmatch-substring m 2) 27 "|" 28 #?=(rxmatch-substring m 1) 29 "]]")))) 30 (str 31 (regexp-replace-all #/<%=[ ]?isbn_image[ ]+'([^']+)'[ ]+%>/ #?=str 32 (lambda (m) 33 (string-append "##(amazon " 34 (rxmatch-substring m 1) 35 ")"))))) 36 #?=str)) 37 38 16 39 (define (output-oldtype-file username date entry-data) 17 40 … … 21 44 (when (string? (car lst)) 22 45 (begin 23 (display (car lst) port)24 (newline port)25 (newline port))))46 (display (convert-command (car lst)) port) 47 (newline port) 48 (newline port)))) 26 49 entry)) 27 50
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)