prowong / lrcdis

Automatically exported from code.google.com/p/lrcdis
1 stars 0 forks source link

lrcdies on FreeBSD 8.2 #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我用的是最新版本的lrcdis

justin@zust.pts/0 ~ % lrcdis.sh -v
/home/justin/bin/lrcdis.sh Version:090908

但是在播放的时候出现了以下问题, 
就是下面那两行以sed开头的东西,虽不影响歌词显示,但总��
�得不妥(我用moc 2.4.4,采用echo模式):

justin@zust.pts/1 ~ % lrcdis.sh 
sed: 1: "/home/justin/.config/lr ...": invalid command code j
sed: 1: "/home/justin/.config/lr ...": invalid command code j
错误: 播放器已停止或未开启!
****** You Raise Me Up ******
You Raise Me Up 
Lyrics by Brendan Graham 
Music by Rolf Lovland 
Started it's life as a slow air 
weaving its way into the melody. 
We tried to banish the piece 
....

另外,在使用CLI模式时,歌词显示会有一些凌乱,不像echo模�
��那样工整:

justin@zust.pts/1 ~ % lrcdis.sh
sed: 1: "/home/justin/.config/lr ...": invalid command code j
sed: 1: "/home/justin/.config/lr ...": invalid command code j
/home/justin/bin/lrcdis.sh: line 715: seq: command not found
 ****** You Raise Me Up ******/home/justin/bin/lrcdis.sh: line 715: seq: command not found
 Secret Garden  Lyrics by Brendan Graham  Music by Rolf Lovland  Started it's life as a slow air  with fragments of a familiar Irish tune  weaving its way into the melody.  We tried to banish the piece  but it would not go away.   Maybe it wanted a different life-form…and so,   we decided to pursue the idea of adding lyrics /home/justin/bin/lrcdis.sh: line 715: seq: command not found
 and asked Irish writer Brendan Graham to listen to it.   His books The Whitest Flower and The Element of Fire   - two best-selling novels about the life of Ellen Rua O' Malley during the Irish famine,。。。

我的操作系统是FreeBSD8.2:

justin@zust.pts/2 ~ % uname -a
FreeBSD zust.edu 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 
2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

我很喜欢这款软件,所以希望大家能够不吝赐教啊。先谢谢��
�。

Original issue reported on code.google.com by linuxjus...@gmail.com on 20 Mar 2011 at 2:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
我自己刚刚发现了一个临时的解决办法:
从FreeBSD的ports里安装coreutils,再将gsed和gecho、gseq、god、ghead替�
��本脚本中的sed、echo、seq、od和head,然后再分别在大致位置��
�766行的两句

gecho -ne "\033[${!Lyricscolor}m "${line}"\033[0m"

后各加一句

gecho -ne "\n"

这样,至少对mocp来说就可以了。希望能有更好的办法。

Original comment by linuxjus...@gmail.com on 2 Apr 2011 at 1:59