找回密码
 立即注册
查看: 435|回复: 5

How to copy source code example from PDF file

[复制链接]

该用户从未签到

4

主题

87

回帖

684

积分

高级会员

积分
684
发表于 2023-5-14 13:57:30 | 显示全部楼层 |阅读模式
I have STC8H Manual and example code, eg like section 20.8.3 Quadrature encoder mode, but select text does not support copy. It
seems silly to publish a PDF file with source code, yet then prohibit copy?
How can I copy, or find a link to the source code, in the PDF manual.

回复 送花

使用道具 举报

该用户从未签到

554

主题

9637

回帖

1万

积分

管理员

积分
14110
发表于 2023-5-14 14:00:27 | 显示全部楼层
from here
1.png
1.png

回复 支持 1 反对 0 送花

使用道具 举报

  • TA的每日心情
    开心
    5 小时前
  • 签到天数: 169 天

    [LV.7]常住居民III

    9

    主题

    310

    回帖

    3809

    积分

    荣誉版主

    积分
    3809
    发表于 2023-5-14 14:48:24 | 显示全部楼层
    Some sources are also available in stc-isp (full version, a tiny one does not include these), so you won't be bothered by these folders with Chinese character naming


    Screenshot 2023-05-14 144544.png Screenshot 2023-05-14 144420.png

    回复 支持 反对 送花

    使用道具 举报

  • TA的每日心情
    开心
    5 小时前
  • 签到天数: 169 天

    [LV.7]常住居民III

    9

    主题

    310

    回帖

    3809

    积分

    荣誉版主

    积分
    3809
    发表于 2023-5-14 14:58:34 | 显示全部楼层
    A tricky way is to print the manual via some sophisticated pdf readers, which can generate a new file with its original texts instead of pictures.
    I tried that Chrome-build-in and Acrobat does not work, but there do be some readers that can help (this is not ad, so I won't state its name).
    回复 支持 反对 送花

    使用道具 举报

    该用户从未签到

    4

    主题

    87

    回帖

    684

    积分

    高级会员

    积分
    684
     楼主| 发表于 2023-5-14 16:09:20 | 显示全部楼层
    Great, thanks, did not think to look inside the ISP tools, so I can download code.
    That still leaves open the question of why you cannot copy from the PDF ?  No other MCU vendor I've seen prevents that ?
    回复 支持 反对 送花

    使用道具 举报

    该用户从未签到

    4

    主题

    87

    回帖

    684

    积分

    高级会员

    积分
    684
     楼主| 发表于 2023-5-14 17:47:35 | 显示全部楼层
    kksk 发表于 2023-5-14 14:48
    Some sources are also available in stc-isp (full version, a tiny one does not include these), so you ...

    Yes, going via full version stc-isp looks better for external characters.
    However, note that the source code still has embedded Chinese characters.
    A web link may be better, as then browser inbuilt translators can do their magic   

    回复 支持 反对 送花

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|手机版|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )

    GMT+8, 2024-5-28 23:16 , Processed in 0.061406 second(s), 51 queries .

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表