元标签:拉丁和非拉丁字母网站的标题和描述

发布于 2024-12-14 02:19:36 字数 748 浏览 2 评论 0原文

我(我相信)有一个独特的情况;有点困惑。协议如下。

情况:我有一个单一语言的网站,其中所有内容(内容、链接)均采用非拉丁字符。 (西里尔文)(utf-8)

该网站旨在连接全球俄语读/说人士。

问题是很多人(约 70%)使用拉丁字母输入俄语搜索词。例如:“novaja mashina”,在英语中没什么意思,但在俄语中意思是“新车”。

我的任务是构建主页的标题和元标记=描述,所以如果可能的话我可以一石二鸟,这意味着适应那些拥有并将使用西里尔键盘并输入搜索词的人西里尔语以及使用拉丁字母构建俄语单词的人们仍然可以找到我的网站。

我的解决方案(我认为很差)是简单地将拉丁文和西里尔文依次堆叠在标题标签中,并与meta=description 中的相同。

  • 这是一个坏主意吗?

如果不是,

  • 搜索引擎机器人/爬虫会忽略用英语写的俄语单词吗?
  • 如果我这样做,谷歌或其他搜索引擎会感到困惑或对排名产生负面影响吗?
  • 标题和元描述也用英文写是个好主意吗?
  • 谷歌会认为标题太长并惩罚我吗? (西里尔文+拉丁俄文+英语相同的东西 3 次最终会导致标题有点长)

有人可以分享一个更聪明/更好的解决方案吗?

提前谢谢您! !!

I have (I believe) a unique situation; a bit of a puzzle. heres the deal.

Situation: I have a one language web site, where everything (content, links) are in non-latin based characters. (Cyrillic)(utf-8)

The site aims to connect Russian reading/speaking people around the globe.

Problem is that lots of people (about 70%) are typing Russian search terms using Latin letters. For example: "novaja mashina", in English means nothing, but in Russian means "new car".

My task is to construct Title of the main page and Meta tag=description, so I can kill two birds with one stone if possible, meaning to accommodate people who have and will use Cyrillic keyboards and type search terms in Cyrillic and people who will use Latin letters constructing Russian words and still find my site.

My solution, (poor I believe), was to simply stack Latin and Cyrillic one after another in title tag and same with in meta=description.

  • Is this a bad idea altogether?

if not

  • Will search engine robot/crawler ignore Russian words written in English?
  • Will google or other search engines get confused or negatively affect ranking if I do that.
  • Is it a good idea to write title and meta descr in English also?
  • Will google consider title too long and penalize me? (Cyrillic+Latin-russian+English of the same thing 3 times will end up being kinda long for a title)

Can some one share a cleverer/better solution??

Thank you in advance!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疏忽 2024-12-21 02:19:36

实际上, 标签有一个 lang 属性可以帮助搜索引擎:

  • 了解您有一个多语言页面
  • ,分别正确地为每种语言索引元值。

以下是 lang 属性的使用方式:

<html lang="ru">
  <head>
    <meta charset="UTF-8">
    <meta name="description" lang="ru" content="новая машина">
    <meta name="description" lang="ru-Latn-t-cyrl" content="novaya mashina">
    <meta http-equiv="Content-Language" content="ru, ru-Latn-t-cyrl"/>
  </head>
...
</html>

语言代码 ru-Latn-t-cyrl 表示 content 标记的值实际上是俄语,但它是从西里尔语音译到拉丁语的。有关此语言代码约定的详细信息,请参阅 BCP 47 扩展 Thttp-equiv="Content-Language"content 值告诉浏览器您的页面包含俄语和音译为拉丁语的俄语。

现在你的问题:

  • 搜索引擎机器人/爬虫会忽略用英语写的俄语单词吗?

可能不会。它们仍会被编入索引,并且您的网页最终可能会出现在该音译字符串<的搜索结果中/a>.

  • 如果我这样做,Google 或其他搜索引擎是否会感到困惑或对排名产生负面影响。

我不能肯定地说,因为我不是真正的 SEO 专家,但这不太可能。

  • 用英文编写标题和元描述是个好主意吗?

这取决于。如果您希望该网站显示在英文搜索中。

  • Google 会认为标题太长并惩罚我吗? (西里尔语+拉丁语-俄语+英语,同一件事重复 3 次,最终会导致标题有点长)

如果您的网站没有英语作为语言,那么拥有英文标题就没有多大意义。如果这样做,则当用户将语言切换为英语时,将页面标题更改为英语。我认为音译标题太多了,而且也不好。寻找更详细的 标签。

最后,这里有一些来自 W3C 的关于在HTML。

Actually, <meta> tags have a lang attribute which can help search engines to:

  • Understand that you have a multilingual page
  • Index Meta values in each language separately and properly.

Here is how lang attribute can be used:

<html lang="ru">
  <head>
    <meta charset="UTF-8">
    <meta name="description" lang="ru" content="новая машина">
    <meta name="description" lang="ru-Latn-t-cyrl" content="novaya mashina">
    <meta http-equiv="Content-Language" content="ru, ru-Latn-t-cyrl"/>
  </head>
...
</html>

The language code ru-Latn-t-cyrl means that the value of the content tag is actually in Russian, but it was transliterated from Cyrillic to Latin. For detailed information about this convention for language codes, see BCP 47 Extension T. content value of http-equiv="Content-Language" tells the browsers that your page includes both Russian and Russian transliterated into Latin.

Now your questions:

  • Will search engine robot/crawler ignore Russian words written in English?

Probably not. They would be still indexed and your page might end up appearing in the search results for that transliterated string.

  • Will google or other search engines get confused or negatively affect ranking if I do that.

I can not say with certainty since I'm not really an SEO expert, but it's unlikely.

  • Is it a good idea to write title and meta descr in English also?

It depends. If you would like the site to show up in English search.

  • Will google consider title too long and penalize me? (Cyrillic+Latin-russian+English of the same thing 3 times will end up being kinda long for a title)

If you don't have English as a language for your site, it doesn't make much sense to have an English title. If you do, then change the title of pages to English when the user switches the language to English. And I assume that having transliterated title is too much and it is not nice as well. Go for more detailed <meta> tags.

Finally, here are some internationalization best practices from W3C regarding declaring language in HTML.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文