jiandanfeng
jiandanfeng
@JackieAnxis 把windows的字体路径映射到服务镜像里面就行了,比如:docker run -t -d -p 9980:9980 -v C:/Windows/Fonts:/usr/share/fonts/truetype -v C:/Windows/Fonts:/opt/cool/systemplate/usr/share/fonts/truetype --restart always collabora/code:latest
首先保证你的文档的对应字体在collabora服务中是存在的,可以进入collabora docker容器中看下,其中有两个路径,并且新环境和旧环境不一样: 新环境是:/usr/share/fonts/以及/opt/cool/systemplate/usr/share/fonts 旧环境是:/usr/share/fonts/以及/opt/lool/systemplate/usr/share/fonts,其实就是cool和lool的区别。 其次在容器中执行下locale,看看是不是UTF-8。 最后,还是不行就换个文档试试。 2022-09-17 13:06:43"ixsword" ***@***.***>写道: 你好,不知道你能不能放一下如何增加中文字体的教程?我这边的中文字符都显示为:口口 Hello, would you mind please show me how to add Chinese fonts in Collabora? All Chinese characters are represented by...
> 这个需要自己打包镜像,docker镜像中的系统安装中文字体,设置为中文环境 修改源代码中的/docker/from-packages/scripts/install-collabora-online-ubuntu.sh这个文件修改 安装系统中文包:apt-get -y install language-pack-zh-hans
> 抱歉再请教一下,我在install-collabora-online-ubuntu.sh里面加了安装中文包的命令,然后在docker/from-packages/Ubuntu里加了ENV LC_CTYPE zh_CN.UTF-8和ENV LANG zh_CN.UTF-8两行,这样打包完跑起来界面还是英文的。试着又装了中文字体,只是文档里的字变了,编辑器的界面仍是英文。必须在dockerfile里加字体再打包才可以吗,还是说还需要其他的配置? 中文字体运行容器映射进去就行了,这个我不确定是否有影响;另一个有影响的是浏览器的环境(英文还是中文?)
试过把docker container删掉,重新运行新的容器,执行到setup.sh还是会发生同样的问题
我退回到4.2.0,执行setup.sh browser可以正常启动,当browser启动成功后,根据模板来创建图项目时,会报这个错误 
Isn't this just a Annotation Reply? Already have it. 
> > Isn't this just a Annotation Reply? Already have it.这不就是 Annotation Reply 吗?已经拥有它。 > >  > > The results you upload here will be generated by the LLM....
Input parameters need to be braces. Without parentheses, my test results are also empty.  
you must configure streaming_function_call to support If it is openai api compatible and chat model. 